toil.test.src.userDefinedJobArgTypeTest

Classes

UserDefinedJobArgTypeTest

Test for issue #423 (Toil can't unpickle classes defined in user scripts) and variants

JobClass

Class represents a unit of work in toil.

Foo

Functions

jobFunction(job, level, foo)

main()

Module Contents

class toil.test.src.userDefinedJobArgTypeTest.UserDefinedJobArgTypeTest(methodName='runTest')

Bases: toil.test.ToilTest

Test for issue #423 (Toil can’t unpickle classes defined in user scripts) and variants thereof.

https://github.com/BD2KGenomics/toil/issues/423

setUp()

Hook method for setting up the test fixture before exercising it.

testJobFunction()

Test with first job being a function

testJobClass()

Test with first job being an instance of a class

testJobFunctionFromMain()

Test with first job being a function defined in __main__

testJobClassFromMain()

Test with first job being an instance of a class defined in __main__

class toil.test.src.userDefinedJobArgTypeTest.JobClass(level, foo)

Bases: toil.job.Job

Class represents a unit of work in toil.

level
foo
run(fileStore)

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

Parameters:

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

Returns:

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

toil.test.src.userDefinedJobArgTypeTest.jobFunction(job, level, foo)
class toil.test.src.userDefinedJobArgTypeTest.Foo
original_id
assertIsCopy()
toil.test.src.userDefinedJobArgTypeTest.main()