from config import DefaultConfig from util.config.schema import CONFIG_SCHEMA def test_ensure_schema_defines_all_fields(): for key in vars(DefaultConfig): assert key in CONFIG_SCHEMA['properties'], "Property `%s` is missing from config schema" % key