toil.test.src.busTest

Attributes

logger

Classes

MessageBusTest

A common base class for Toil tests.

Functions

failing_job_fn(job)

This function is guaranteed to fail.

Module Contents

toil.test.src.busTest.logger
class toil.test.src.busTest.MessageBusTest(methodName='runTest')[source]

Bases: toil.test.ToilTest

A common base class for Toil tests.

Please have every test case directly or indirectly inherit this one.

When running tests you may optionally set the TOIL_TEST_TEMP environment variable to the path of a directory where you want temporary test files be placed. The directory will be created if it doesn’t exist. The path may be relative in which case it will be assumed to be relative to the project root. If TOIL_TEST_TEMP is not defined, temporary files and directories will be created in the system’s default location for such files and any temporary files or directories left over from tests will be removed automatically removed during tear down. Otherwise, left-over files will not be removed.

test_enum_ints_in_file()[source]

Make sure writing bus messages to files works with enums.

Return type:

None

test_cross_thread_messaging()[source]

Make sure message bus works across threads.

Return type:

None

test_restart_without_bus_path()[source]

Test the ability to restart a workflow when the message bus path used by the previous attempt is gone.

Return type:

None

toil.test.src.busTest.failing_job_fn(job)[source]

This function is guaranteed to fail.

Parameters:

job (toil.job.Job)

Return type:

None