toil.test.src.promisesTest

Classes

CachedUnpicklingJobStoreTest

A common base class for Toil tests.

ChainedIndexedPromisesTest

A common base class for Toil tests.

PathIndexingPromiseTest

Test support for indexing promises of arbitrarily nested data structures of lists, dicts and

Functions

parent(job)

child()

a(job)

b(job)

c()

d(job)

e()

Module Contents

class toil.test.src.promisesTest.CachedUnpicklingJobStoreTest(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()[source]

Runs two identical Toil workflows with different job store paths

toil.test.src.promisesTest.parent(job)[source]
toil.test.src.promisesTest.child()[source]
class toil.test.src.promisesTest.ChainedIndexedPromisesTest(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()[source]
toil.test.src.promisesTest.a(job)[source]
toil.test.src.promisesTest.b(job)[source]
toil.test.src.promisesTest.c()[source]
class toil.test.src.promisesTest.PathIndexingPromiseTest(methodName='runTest')[source]

Bases: toil.test.ToilTest

Test support for indexing promises of arbitrarily nested data structures of lists, dicts and tuples, or any other object supporting the __getitem__() protocol.

test()[source]
toil.test.src.promisesTest.d(job)[source]
toil.test.src.promisesTest.e()[source]