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')

Bases: toil.test.ToilTest

Inheritance diagram of toil.test.src.restartDAGTest.RestartDAGTest

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()

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

tearDown()

Hook method for deconstructing the test fixture after testing it.

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

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)

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.