lintConnections

lsst.pipe.base.testUtils.lintConnections(connections, *, checkMissingMultiple=True, checkUnnecessaryMultiple=True)

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.

Raises:
AssertionError

Raised if any of the selected checks fail for any connection.