1111from jsonschema .exceptions import ValidationError
1212
1313schema_store = {}
14- for schema_filename in glob .glob ("ngff_spec/ schemas/*" ):
14+ for schema_filename in glob .glob ("schemas/*" ):
1515 with open (schema_filename ) as f :
1616 schema = json .load (f )
1717 schema_store [schema ["$id" ]] = schema
@@ -61,7 +61,7 @@ def pytest_generate_tests(metafunc):
6161 suites : List [Schema ] = []
6262 ids : List [str ] = []
6363 schema_store = {}
64- for filename in glob .glob ("ngff_spec/ schemas/*.schema" ):
64+ for filename in glob .glob ("schemas/*.schema" ):
6565 with open (filename ) as o :
6666 schema = json .load (o )
6767 schema_store [schema ["$id" ]] = schema
@@ -80,7 +80,7 @@ def pytest_generate_tests(metafunc):
8080 # Examples
8181 # TODO: Split examples into snippets (used for reference in spec) and
8282 # complete examples (to be validated here)
83- # for config_filename in glob.glob("ngff_spec/ examples/*/.config.json"):
83+ # for config_filename in glob.glob("examples/*/.config.json"):
8484 # with open(config_filename) as o:
8585 # data = json.load(o)
8686 # schema = data["schema"]
@@ -124,7 +124,7 @@ def test_example_configs():
124124 Test that all example folders have a config file
125125 """
126126 missing = []
127- for subdir in os .walk ("ngff_spec/ examples" ):
127+ for subdir in os .walk ("examples" ):
128128 has_examples = glob .glob (f"{ subdir [0 ]} /*.json" )
129129 has_config = glob .glob (f"{ subdir [0 ]} /.config.json" )
130130 if has_examples and not has_config :
0 commit comments