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:
connectionslsst.pipe.base.PipelineTaskConnections-type

The connections class to test.

checkMissingMultiplebool

Whether to test for single connections that would match multiple datasets at run time.

checkUnnecessaryMultiplebool

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.