MockPipelineTask#

class lsst.pipe.base.tests.mocks.MockPipelineTask(*, config: BaseTestPipelineTaskConfig, initInputs: Mapping[str, Any], **kwargs: Any)#

Bases: BaseTestPipelineTask

A test-utility implementation of PipelineTask with connections generated by mocking those of a real task.

Notes#

At present MockPipelineTask simply drops any initInput and initOutput connections present on the original, since MockDataset creation for those would have to happen in the code that executes the task, not in the task itself. Because MockPipelineTask never instantiates the mock task (just its connections class), this is a limitation on what the mocks can be used to test, not anything deeper.