Add test to ensure that all config.py properties are defined in the config schema
This commit is contained in:
parent
00ae24cb2f
commit
7893ef6acc
1 changed files with 7 additions and 0 deletions
7
util/config/test/test_schema.py
Normal file
7
util/config/test/test_schema.py
Normal file
|
@ -0,0 +1,7 @@
|
|||
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
|
||||
|
Reference in a new issue