Add test to ensure that all config.py properties are defined in the config schema

This commit is contained in:
Joseph Schorr 2018-02-02 14:41:30 -05:00
parent 00ae24cb2f
commit 7893ef6acc

View 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