MockPipelineTask#
- class lsst.pipe.base.tests.mocks.MockPipelineTask(*, config: BaseTestPipelineTaskConfig, initInputs: Mapping[str, Any], **kwargs: Any)#
Bases:
BaseTestPipelineTaskA test-utility implementation of
PipelineTaskwith connections generated by mocking those of a real task.Notes#
At present
MockPipelineTasksimply drops anyinitInputandinitOutputconnections present on the original, sinceMockDatasetcreation for those would have to happen in the code that executes the task, not in the task itself. BecauseMockPipelineTasknever instantiates the mock task (just its connections class), this is a limitation on what the mocks can be used to test, not anything deeper.