def test_schemas_are_valid(self):
     """Validate that schemas are valid jsonschema"""
     schemas = TestSchemaExamples._json_examples_per_schema
     for test_name, examples in schemas.items():
         if isinstance(examples, tuple):
             schema_name = examples[0]
             examples = examples[1]
         else:
             schema_name = test_name
         with self.subTest(schema_test=schema_name):
             _get_validator(schema_name, check_schema=True)
Exemple #2
0
 def test_schemas_are_valid(self):
     """Validate that schemas are valid jsonschema"""
     schemas = TestSchemaExamples._json_examples_per_schema
     for schema_name in schemas:
         with self.subTest(schema_test=schema_name):
             _get_validator(schema_name, check_schema=True)