toil.test.lib.test_history

Attributes

logger

Classes

TestHistory

Tests for Toil history tracking.

Module Contents

toil.test.lib.test_history.logger
class toil.test.lib.test_history.TestHistory

Tests for Toil history tracking.

Each test gets its own history database.

private_history_manager(tmp_path, monkeypatch)
Parameters:
Return type:

collections.abc.Generator[None]

make_fake_workflow(workflow_id)
Parameters:

workflow_id (str)

Return type:

None

test_history_submittable_detection()

Make sure that a submittable workflow shows up as such before submission and doesn’t afterward.

Return type:

None

test_history_deletion()
Return type:

None

test_history_size_limit()

Make sure the database size can be controlled.

Return type:

None

test_history_workflow_creation_is_idempotent()

Make sure record_workflow_creation can be called more than once for the same workflow without error, and only reports creating the record the first time.

Return type:

None

test_history_attempt_after_restart_backfill()

Make sure that recording a workflow attempt works even when this history database never saw the workflow’s creation, as long as the workflow is recorded first, as Toil now does on every restart and not just the first attempt.

Return type:

None