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; seeavailable_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:
Notes
A
retiredfixture is checked only for being rejected; it cannot be validated, so the canonical and pairing checks do not apply to it. Anas_shippedfixture is exempt from the canonical check, and itscanonicaltwin carries the stronger pairwise check in its place.