Skip to content

Commit 35ff261

Browse files
committed
TEST: Make phenotype an exception for now
1 parent dc4de69 commit 35ff261

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
@@ -92,6 +92,11 @@ def test_rule_objects(schema_obj):
9292

9393
# Build a list of items mentioned in rules, but not found in objects.
9494
if use not in object_values:
95+
if (use, object_type) == ("phenotype", "datatypes"):
96+
# Special case: phenotype is a top-level directory
97+
# that acts like a datatype, but we don't want to
98+
# define it that way in the glossary, currently.
99+
continue
95100
temp_path = path[:]
96101
if is_list:
97102
temp_path[-1] += f"[{i_use}]"

0 commit comments

Comments
 (0)