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:
- originals
Iterable[TaskDef] Original tasks and configuration to mock.
- unmocked_dataset_types
Iterable[str], optional Names of overall-input dataset types that should not be replaced with mocks.
- force_failures
Mapping[str,ForcedFailure] Mapping from original task label to information about an exception one or more quanta for this task should raise.
- originals
- Returns:
- mocked
list[TaskDef] List of
TaskDefobjects usingMockPipelineTaskconfigurations that target the original tasks, in the same order.
- mocked