toil.test.src.resourceTest

Classes

TestResource

Test module descriptors and resources derived from them.

Functions

tempFileContaining(directory, content[, suffix])

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

Module Contents

toil.test.src.resourceTest.tempFileContaining(directory, 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.

Parameters:
Return type:

str

class toil.test.src.resourceTest.TestResource

Test module descriptors and resources derived from them.

testStandAlone(tmp_path)
Parameters:

tmp_path (pathlib.Path)

Return type:

None

testPackage(tmp_path)
Parameters:

tmp_path (pathlib.Path)

Return type:

None

testVirtualEnv(tmp_path)
Parameters:

tmp_path (pathlib.Path)

Return type:

None

testStandAloneInPackage(tmp_path)
Parameters:

tmp_path (pathlib.Path)

Return type:

None

testBuiltIn()
Return type:

None

testNonPyStandAlone(tmp_path)

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

Parameters:

tmp_path (pathlib.Path)

Return type:

None