fireworks.user_objects.firetasks.tests package

Submodules

fireworks.user_objects.firetasks.tests.test_dataflow_tasks module

Unit tests for the dataflow tasks

class fireworks.user_objects.firetasks.tests.test_dataflow_tasks.CommandLineTaskTest(methodName='runTest')

Bases: unittest.case.TestCase

run tests for CimmandLineTask

test_command_line_task_1()

input from string to stdin, output from stdout to string

test_command_line_task_2()

input from string to data, output from stdout to file; input from file to stdin, output from stdout to string and from file

test_command_line_task_3()

input from string to data with command line options

test_command_line_task_4()

multiple string inputs, multiple file outputs

class fireworks.user_objects.firetasks.tests.test_dataflow_tasks.ForeachTaskTest(methodName='runTest')

Bases: unittest.case.TestCase

run tests for ForeachTask

test_foreach_commandlinetask()

run CommandLineTask for a list of input data

test_foreach_pytask()

run PyTask for a list of numbers

class fireworks.user_objects.firetasks.tests.test_dataflow_tasks.ImportDataTaskTest(methodName='runTest')

Bases: unittest.case.TestCase

run tests for ImportDataTask

test_import_data_task()

loads data from a file into spec

class fireworks.user_objects.firetasks.tests.test_dataflow_tasks.JoinDictTaskTest(methodName='runTest')

Bases: unittest.case.TestCase

run tests for JoinDictTask

test_join_dict_task()

joins dictionaries into a new or existing dict in spec

class fireworks.user_objects.firetasks.tests.test_dataflow_tasks.JoinListTaskTest(methodName='runTest')

Bases: unittest.case.TestCase

run tests for JoinListTask

test_join_list_task()

joins items into a new or existing list in spec

fireworks.user_objects.firetasks.tests.test_dataflow_tasks.afunc(array, power)

return the powers of a list of numbers

fireworks.user_objects.firetasks.tests.test_fileio_tasks module

class fireworks.user_objects.firetasks.tests.test_fileio_tasks.CompressDecompressArchiveDirTest(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_archive_dir()
test_compress_dir()
class fireworks.user_objects.firetasks.tests.test_fileio_tasks.FileWriteDeleteTest(methodName='runTest')

Bases: unittest.case.TestCase

test_init()
test_run()

fireworks.user_objects.firetasks.tests.test_filepad_tasks module

class fireworks.user_objects.firetasks.tests.test_filepad_tasks.FilePadTasksTest(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_addfilesfrompatterntask_run()
test_addfilestask_run()
test_deletefilestask_run()
test_getfilesbyquerytask_ignore_degenerate_file_name()

Tests on ignoring degenerate file name in result from FilePad query

test_getfilesbyquerytask_ignore_empty_result_run()

Tests on ignoring empty results from FilePad query

test_getfilesbyquerytask_metafile_run()

Tests writing metadata to a yaml file

test_getfilesbyquerytask_raise_degenerate_file_name()

Tests on raising exception on degenerate file name from FilePad query

test_getfilesbyquerytask_raise_empty_result_run()

Tests on raising exception on empty results from FilePad query

test_getfilesbyquerytask_run()

Tests querying objects from FilePad by metadata

test_getfilesbyquerytask_sort_ascending_name_run()

Tests on sorting queried files in ascending order

test_getfilesbyquerytask_sort_descending_name_run()

Tests on sorting queried files in descending order

test_getfilestask_run()

fireworks.user_objects.firetasks.tests.test_script_task module

TODO: Modify unittest doc.

class fireworks.user_objects.firetasks.tests.test_script_task.PyTaskTest(methodName='runTest')

Bases: unittest.case.TestCase

test_task()
test_task_auto_kwargs()
test_task_data_flow()

test dataflow parameters: inputs, outputs and chunk_number

class fireworks.user_objects.firetasks.tests.test_script_task.ScriptTaskTest(methodName='runTest')

Bases: unittest.case.TestCase

test_scripttask()
fireworks.user_objects.firetasks.tests.test_script_task.afunc(y, z, a)

fireworks.user_objects.firetasks.tests.test_templatewriter_task module

TODO: Modify unittest doc.

class fireworks.user_objects.firetasks.tests.test_templatewriter_task.TemplateWriterTaskTest(methodName='runTest')

Bases: unittest.case.TestCase

test_task()

Module contents