From 1bf8f3dcceb1e5ab4147270943ca2557dbdad88a Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Fri, 16 Feb 2024 10:57:36 -0500 Subject: [PATCH] TEST: Make phenotype an exception for now --- tools/schemacode/bidsschematools/data/tests/test_rules.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/schemacode/bidsschematools/data/tests/test_rules.py b/tools/schemacode/bidsschematools/data/tests/test_rules.py index 6c46a5da5d..39fce83a3a 100644 --- a/tools/schemacode/bidsschematools/data/tests/test_rules.py +++ b/tools/schemacode/bidsschematools/data/tests/test_rules.py @@ -87,6 +87,11 @@ def test_rule_objects(schema_obj): # Build a list of items mentioned in rules, but not found in objects. if use not in object_values: + if (use, object_type) == ("phenotype", "datatypes"): + # Special case: phenotype is a top-level directory + # that acts like a datatype, but we don't want to + # define it that way in the glossary, currently. + continue temp_path = path[:] if is_list: temp_path[-1] += f"[{i_use}]"