Skip to content

Commit 1a7ecd9

Browse files
committed
TEST: Make phenotype an exception for now
1 parent eece5c5 commit 1a7ecd9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/schemacode/bidsschematools/data/tests/test_rules.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@ def test_rule_objects(schema_obj):
8787

8888
# Build a list of items mentioned in rules, but not found in objects.
8989
if use not in object_values:
90+
if (use, object_type) == ("phenotype", "datatypes"):
91+
# Special case: phenotype is a top-level directory
92+
# that acts like a datatype, but we don't want to
93+
# define it that way in the glossary, currently.
94+
continue
9095
temp_path = path[:]
9196
if is_list:
9297
temp_path[-1] += f"[{i_use}]"

0 commit comments

Comments
 (0)