fireworks.utilities.tests package

Submodules

fireworks.utilities.tests.test_dagflow module

Unit tests for the DAGFlow class

class fireworks.utilities.tests.test_dagflow.DAGFlowTest(methodName='runTest')

Bases: unittest.case.TestCase

run tests for DAGFlow class

setUp()

Hook method for setting up the test fixture before exercising it.

test_dagflow_clashing_inputs()

parent firework output overwrites an input in spec

test_dagflow_clashing_outputs()

subsequent task overwrites output of a task

test_dagflow_cut()

disconnected graph

wrong links

test_dagflow_loop()

loop in graph

test_dagflow_missing_input()

missing input

test_dagflow_non_dataflow_tasks()

non-dataflow tasks using outputs and inputs keys do not fail

test_dagflow_ok()

construct and replicate

test_dagflow_race_condition()

two parent firework outputs overwrite each other

test_dagflow_view()

visualize the workflow graph

fireworks.utilities.tests.test_filepad module

class fireworks.utilities.tests.test_filepad.FilePadTest(methodName='runTest')

Bases: unittest.case.TestCase

setUp()

Hook method for setting up the test fixture before exercising it.

tearDown()

Hook method for deconstructing the test fixture after testing it.

test_add_file()
test_add_file_with_no_identifier()
test_delete_file()
test_get_file()
test_update_file()
test_update_file_by_id()

fireworks.utilities.tests.test_fw_serializers module

class fireworks.utilities.tests.test_fw_serializers.ExplicitSerializationTest(methodName='runTest')

Bases: unittest.case.TestCase

setUp()

Hook method for setting up the test fixture before exercising it.

test_explicit_serialization()
class fireworks.utilities.tests.test_fw_serializers.ExplicitTestSerializer(a)

Bases: fireworks.utilities.fw_serializers.FWSerializable

__init__(a)

Initialize self. See help(type(self)) for accurate signature.

classmethod from_dict(m_dict)
to_dict()
class fireworks.utilities.tests.test_fw_serializers.SerializationTest(methodName='runTest')

Bases: unittest.case.TestCase

setUp()

Hook method for setting up the test fixture before exercising it.

tearDown()

Hook method for deconstructing the test fixture after testing it.

test_as_dict()
test_complex_json()
test_complex_yaml()
test_implicit_serialization()
test_json()
test_numpy_array()
test_sanity()
test_serialize_fw_decorator()
test_unicode_json()
test_unicode_json_file()
test_unicode_yaml()
test_unicode_yaml_file()
test_yaml()

fireworks.utilities.tests.test_update_collection module

class fireworks.utilities.tests.test_update_collection.UpdateCollectionTests(methodName='runTest')

Bases: unittest.case.TestCase

classmethod setUpClass()

Hook method for setting up class fixture before running tests in the class.

classmethod tearDownClass()

Hook method for deconstructing the class fixture after running all tests in the class.

test_update_path()

fireworks.utilities.tests.test_visualize module

Module contents