bayesline.api.validate_migration_chain

bayesline.api.validate_migration_chain#

bayesline.api.validate_migration_chain(settings_type: type) None#

Validate that a settings type has a complete chain of migrations.

Should be called in tests for every versioned settings type.

Parameters#

settings_typetype

The Settings subclass to validate.

Raises#

ValueError

If any migration step is missing in the chain from 1 to _schema_version.