diff --git a/tests/test_config_schema.py b/tests/test_config_schema.py new file mode 100644 index 0000000..e621aea --- /dev/null +++ b/tests/test_config_schema.py @@ -0,0 +1,13 @@ +""" +Unit test functions to test JSON Schema validation +""" + +import jsonschema + +from tljh.config_schema import config_schema + + +def test_valid_config_json_schema(): + """Validate that the JSON schema fits its $schema specification""" + validator_class = jsonschema.validators.validator_for(config_schema) + validator_class.check_schema(config_schema) diff --git a/tljh/configurer.py b/tljh/configurer.py index 7a58bbe..2c5a32c 100644 --- a/tljh/configurer.py +++ b/tljh/configurer.py @@ -5,7 +5,6 @@ Config should never append or mutate, only set. Functions here could be called many times per lifetime of a jupyterhub. Traitlets that modify the startup of JupyterHub should not be here. -FIXME: A strong feeling that JSON Schema should be involved somehow. """ import os