Module Contents



A common base class for Toil tests.


Detect the secret message and set a flag.


Class represents a unit of work in toil.

class toil.test.src.realtimeLoggerTest.RealtimeLoggerTest(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.

class toil.test.src.realtimeLoggerTest.MessageDetector[source]

Bases: logging.StreamHandler

Detect the secret message and set a flag.


Emit a record.

If a formatter is specified, it is used to format the record. The record is then written to the stream with a trailing newline. If exception information is present, it is formatted using traceback.print_exception and appended to the stream. If the stream has an ‘encoding’ attribute, it is used to determine how to do the output to the stream.

class toil.test.src.realtimeLoggerTest.LogTest[source]

Bases: toil.job.Job

Class represents a unit of work in toil.


Override this function to perform work and dynamically create successor jobs.


fileStore – Used to create local and globally sharable temporary files and to send log messages to the leader process.


The return value of the function can be passed to other jobs by means of toil.job.Job.rv().