toil.test.src.resourceTest
¶
Module Contents¶
Classes¶
Test module descriptors and resources derived from them. |
Functions¶
|
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='')[source]¶
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')[source]¶
Bases:
digraph inheritance6346948377 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "ResourceTest" [URL="#toil.test.src.resourceTest.ResourceTest",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 module descriptors and resources derived from them."]; "ToilTest" -> "ResourceTest" [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)"]; }toil.test.ToilTest
Test module descriptors and resources derived from them.
- testNonPyStandAlone()[source]¶
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