runTestQuantum¶
- lsst.pipe.base.testUtils.runTestQuantum(task: PipelineTask, butler: Butler, quantum: Quantum, mockRun: bool = True) Optional[unittest.mock.Mock] ¶
Run a PipelineTask on a Quantum.
- Parameters:
- task
lsst.pipe.base.PipelineTask
The task to run on the quantum.
- butler
lsst.daf.butler.Butler
The collection to run on.
- quantum
lsst.daf.butler.Quantum
The quantum to run.
- mockRun
bool
Whether or not to replace
task
’srun
method. The default ofTrue
is recommended unlessrun
needs to do real work (e.g., because the test needs real output datasets).
- task
- Returns:
- run
unittest.mock.Mock
orNone
If
mockRun
is set, the mock that replacedrun
. This object can be queried for the argumentsrunQuantum
passed torun
.
- run