On 02/18/2014 08:04 PM, Wolfgang Kerzendorf wrote:
>
> In tardis/io/default_conf_test/default_test_load.py:
>
> > @@ -0,0 +1,7 @@
> > +__author__ = 'michi'
> > +import yaml
> > +
> > +f = open('default_conf_test/conf_def.yaml')
> > +default = yaml.safe_load(f)
> > +f = open('default_conf_test/conf_tes.yaml')
> > +config = yaml.safe_load(f)
>
> ah I wrote that you should write tests - but you did. so the general
> structure for testing is that you have a few functions. with a format like
>
> def test_validation():
>     assert config['sectionblah']['sectionblub'] == 'foobar'
>
> With this the tests run using |python setup.py test|.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/tardis-sn/tardis/pull/80/files#r9836536>.
>
This test was written for manual testing .