check_archive_tree_class_invariants#

lsst.images.tests.check_archive_tree_class_invariants(tree_type)#

Assert that one concrete serialization.ArchiveTree subclass declares well-formed schema-version constants and an in-memory type.

Checks that SCHEMA_NAME, SCHEMA_VERSION, MIN_READ_VERSION and PUBLIC_TYPE are present and well-typed, that the version is major.minor.patch, and that MIN_READ_VERSION does not exceed the schema major.

Parameters:

tree_type (type[ArchiveTree]) – The concrete serialization.ArchiveTree subclass to check.

Return type:

None

This page was last modified on .