toil.test.src.resourceTest

Module Contents

Classes

ResourceTest

Test module descriptors and resources derived from them.

Functions

tempFileContaining(content[, suffix])

Write a file with the given contents, and keep it on disk as long as the context is active.

toil.test.src.resourceTest.tempFileContaining(content, suffix='')

Write a file with the given contents, and keep it on disk as long as the context is active. :param str content: The contents of the file. :param str suffix: The extension to use for the temporary file.

class toil.test.src.resourceTest.ResourceTest(methodName='runTest')

Bases: toil.test.ToilTest

Inheritance diagram of toil.test.src.resourceTest.ResourceTest

Test module descriptors and resources derived from them.

testStandAlone()
testPackage()
testVirtualEnv()
testStandAloneInPackage()
testBuiltIn()
testNonPyStandAlone()

Asserts that Toil enforces the user script to have a .py or .pyc extension because that’s the only way auto-deployment can re-import the module on a worker. See

https://github.com/BD2KGenomics/toil/issues/631 and https://github.com/BD2KGenomics/toil/issues/858