toil.test.src.promisesTest

Module Contents

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()

class toil.test.src.promisesTest.CachedUnpicklingJobStoreTest(methodName='runTest')[source]

Bases: toil.test.ToilTest

digraph inheritance1a2e45a35f { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "CachedUnpicklingJobStoreTest" [URL="#toil.test.src.promisesTest.CachedUnpicklingJobStoreTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "ToilTest" -> "CachedUnpicklingJobStoreTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TestCase" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="A class whose instances are single test cases."]; "ToilTest" [URL="../../index.html#toil.test.ToilTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A common base class for Toil tests."]; "TestCase" -> "ToilTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; }

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

digraph inheritancea7f22d2961 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "ChainedIndexedPromisesTest" [URL="#toil.test.src.promisesTest.ChainedIndexedPromisesTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "ToilTest" -> "ChainedIndexedPromisesTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TestCase" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="A class whose instances are single test cases."]; "ToilTest" [URL="../../index.html#toil.test.ToilTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A common base class for Toil tests."]; "TestCase" -> "ToilTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; }

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

digraph inheritance4baedddf0e { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "PathIndexingPromiseTest" [URL="#toil.test.src.promisesTest.PathIndexingPromiseTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Test support for indexing promises of arbitrarily nested data structures of lists, dicts and"]; "ToilTest" -> "PathIndexingPromiseTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TestCase" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="A class whose instances are single test cases."]; "ToilTest" [URL="../../index.html#toil.test.ToilTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A common base class for Toil tests."]; "TestCase" -> "ToilTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; }

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]