mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
14 lines
355 B
Python
14 lines
355 B
Python
"""
|
|
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)
|