runTestQuantum¶
- lsst.pipe.base.testUtils.runTestQuantum(task: PipelineTask, butler: Butler, quantum: Quantum, mockRun: bool = True) unittest.mock.Mock | None¶
- Run a PipelineTask on a Quantum. - Parameters:
- tasklsst.pipe.base.PipelineTask
- The task to run on the quantum. 
- butlerlsst.daf.butler.Butler
- The collection to run on. 
- quantumlsst.daf.butler.Quantum
- The quantum to run. 
- mockRunbool
- Whether or not to replace - task’s- runmethod. The default of- Trueis recommended unless- runneeds to do real work (e.g., because the test needs real output datasets).
 
- task
- Returns:
- rununittest.mock.MockorNone
- If - mockRunis set, the mock that replaced- run. This object can be queried for the arguments- runQuantumpassed to- run.
 
- run