mock_task_defs

lsst.pipe.base.tests.mocks.mock_task_defs(originals: Iterable[TaskDef], unmocked_dataset_types: Iterable[str] = (), force_failures: Mapping[str, ForcedFailure] | None = None) list[lsst.pipe.base.pipeline.TaskDef]

Create mocks for an iterable of TaskDefs.

Parameters:
originalsIterable [ TaskDef ]

Original tasks and configuration to mock.

unmocked_dataset_typesIterable [ str ], optional

Names of overall-input dataset types that should not be replaced with mocks.

force_failuresMapping [ str, ForcedFailure ]

Mapping from original task label to information about an exception one or more quanta for this task should raise.

Returns:
mockedlist [ TaskDef ]

List of TaskDef objects using MockPipelineTask configurations that target the original tasks, in the same order.