check_schema_fixtures#

lsst.images.tests.check_schema_fixtures(directory, *, schema_directory=None, package='lsst.images', exempt=())#

Check the committed fixtures against the current models.

Parameters:
  • directory (Path) – Directory holding the fixture tree.

  • schema_directory (Path | None, default: None) – Directory holding the frozen schema documents. When given, the fixture and schema trees are also checked for pairing in both directions.

  • package (str, default: 'lsst.images') – Package whose schemas to check; see available_schema_classes.

  • exempt (Collection[str], default: ()) – Schema names that are allowed to have no fixture, for schemas whose data this package cannot construct.

Returns:

One problem description per defect found; empty when the fixture tree is sound. This never raises, so a caller can report every problem at once.

Return type:

list [ str ]

Notes

A retired fixture is checked only for being rejected; it cannot be validated, so the canonical and pairing checks do not apply to it. An as_shipped fixture is exempt from the canonical check, and its canonical twin carries the stronger pairwise check in its place.

This page was last modified on .