pyatoa.tests.test_config

Test the I/O and sanity checks of the Config object

Module Contents

Functions

test_io_asdf(tmpdir)

Saving a Config object using an ASDFDataSet will flatten and distribute

test_io_yaml(tmpdir)

Ensure that reading and writing to a Yaml file retains Config parameters

test_incorrect_io_yaml(tmpdir)

Ensure that wrong parameters cannot be passed in through yaml files

test_incorrect_parameter_check()

Check that incorrect values passed to Config will set off the correct errors

pyatoa.tests.test_config.test_io_asdf(tmpdir)[source]

Saving a Config object using an ASDFDataSet will flatten and distribute the dictionaries and Pyflex and Pyadjoint Config objects. Ensure that when this functionality is called, that it doesn’t lose any information in the conversion process.

pyatoa.tests.test_config.test_io_yaml(tmpdir)[source]

Ensure that reading and writing to a Yaml file retains Config parameters

pyatoa.tests.test_config.test_incorrect_io_yaml(tmpdir)[source]

Ensure that wrong parameters cannot be passed in through yaml files

pyatoa.tests.test_config.test_incorrect_parameter_check()[source]

Check that incorrect values passed to Config will set off the correct errors