lintConnections¶
- lsst.pipe.base.testUtils.lintConnections(connections: PipelineTaskConnections, *, checkMissingMultiple: bool = True, checkUnnecessaryMultiple: bool = True) None ¶
Inspect a connections class for common errors.
These tests are designed to detect misuse of connections features in standard designs. An unusually designed connections class may trigger alerts despite being correctly written; specific checks can be turned off using keywords.
- Parameters:
- connections
lsst.pipe.base.PipelineTaskConnections
-type The connections class to test.
- checkMissingMultiple
bool
Whether to test for single connections that would match multiple datasets at run time.
- checkUnnecessaryMultiple
bool
Whether to test for multiple connections that would only match one dataset.
- connections
- Raises:
- AssertionError
Raised if any of the selected checks fail for any connection.