Skip to content

Commit 745a573

Browse files
committed
fix(test): Replace removed schema location
1 parent 46906b8 commit 745a573

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -412,18 +412,18 @@ def test_valid_schema_with_check_jsonschema(tmp_path, regex_variant):
412412
def test_add_legal_field():
413413
"""Test that adding a legal field does not raise an error."""
414414
namespace = schema.load_schema()
415-
namespace["rules"]["files"]["deriv"]["preprocessed_data"]["anat_nonparametric_common"][
416-
"entities"
417-
]["density"] = "optional"
415+
namespace["rules"]["files"]["deriv"]["imaging"]["anat_nonparametric_volumetric"]["entities"][
416+
"density"
417+
] = "optional"
418418
schema.validate_schema(namespace)
419419

420420

421421
def test_invalid_value():
422422
"""Test that an invalid value raises an error."""
423423
namespace = schema.load_schema()
424-
namespace["rules"]["files"]["deriv"]["preprocessed_data"]["anat_nonparametric_common"][
425-
"entities"
426-
]["density"] = "invalid"
424+
namespace["rules"]["files"]["deriv"]["imaging"]["anat_nonparametric_volumetric"]["entities"][
425+
"density"
426+
] = "invalid"
427427
with pytest.raises(ValidationError) as e:
428428
schema.validate_schema(namespace)
429429
print(e.value)

0 commit comments

Comments
 (0)