toil.test.src.restartDAGTest

Module Contents

Classes

RestartDAGTest

Tests that restarted job DAGs don't run children of jobs that failed in the first run till the

Functions

passingFn(job[, fileName])

This function is guaranteed to pass as it does nothing out of the ordinary. If fileName is

failingFn(job, failType, fileName)

This function is guaranteed to fail via a raised assertion, or an os.kill

Attributes

logger

toil.test.src.restartDAGTest.logger
class toil.test.src.restartDAGTest.RestartDAGTest(methodName='runTest')[source]

Bases: toil.test.ToilTest

digraph inheritancecba61b6cf3 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "RestartDAGTest" [URL="#toil.test.src.restartDAGTest.RestartDAGTest",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="Tests that restarted job DAGs don't run children of jobs that failed in the first run till the"]; "ToilTest" -> "RestartDAGTest" [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)"]; }

Tests that restarted job DAGs don’t run children of jobs that failed in the first run till the parent completes successfully in the restart.

setUp()[source]

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

tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

testRestartedWorkflowSchedulesCorrectJobsOnFailedParent()[source]
testRestartedWorkflowSchedulesCorrectJobsOnKilledParent()[source]
toil.test.src.restartDAGTest.passingFn(job, fileName=None)[source]

This function is guaranteed to pass as it does nothing out of the ordinary. If fileName is provided, it will be created.

Parameters

fileName (str) – The name of a file that must be created if provided.

toil.test.src.restartDAGTest.failingFn(job, failType, fileName)[source]

This function is guaranteed to fail via a raised assertion, or an os.kill

Parameters
  • job – Job

  • failType (str) – ‘raise’ or ‘kill

  • fileName (str) – The name of a file that must be created.