Files
the-littlest-jupyterhub/tests/test_config_schema.py

14 lines
355 B
Python
Raw Normal View History

2025-03-11 14:13:28 -04:00
"""
Unit test functions to test JSON Schema validation
"""
2025-04-16 13:30:14 -04:00
import jsonschema
2025-04-16 13:30:14 -04:00
from tljh.config_schema import config_schema
2025-03-11 14:13:28 -04:00
2025-04-16 13:30:14 -04:00
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)