Skip to content

Commit 4ff7cf0

Browse files
committed
test(bst): Narrow glossary validation test
1 parent c65fe77 commit 4ff7cf0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ def test_make_glossary(schema_obj, schema_dir):
6060
for line in glossary.split("\n"):
6161
if line.startswith('<a name="objects.'):
6262
# Are all objects objects?
63-
assert any([line.startswith(f'<a name="objects.{i}') for i in object_files])
63+
assert any(line.startswith(f'<a name="objects.{i}.') for i in object_files)
6464
# Are rules loaded incorrectly?
65-
assert not any([line.startswith(f'<a name="objects.{i}') for i in rules_only])
65+
assert not any(line.startswith(f'<a name="objects.{i}.') for i in rules_only)
6666

6767

6868
@pytest.mark.parametrize("placeholders", [True, False])

0 commit comments

Comments
 (0)