Skip to content

Commit e50d04c

Browse files
committed
BF(test): reintroduce import of the load
This code seems got broken by #4604. My semi-blind (did not test locally) attempt to fix
1 parent 0dd0d36 commit e50d04c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/schemacode/src/bidsschematools/tests/test_schema.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
from bidsschematools import __bids_version__, schema, types
1212

13+
from ..data import load
14+
1315

1416
def test__get_bids_version(schema_dir):
1517
# Is the version being read in correctly?
@@ -372,7 +374,7 @@ def test_valid_schema_with_check_jsonschema(tmp_path, regex_variant):
372374
using the `check-jsonschema` CLI
373375
"""
374376
bids_schema = schema.load_schema().to_dict()
375-
metaschema_path = str(load("metaschema.json"))
377+
metaschema_path = str(load.readable("metaschema.json"))
376378

377379
# Save BIDS schema to a temporary file
378380
bids_schema_path = tmp_path / "bids_schema.json"

0 commit comments

Comments
 (0)