Skip to content

Commit 6b40929

Browse files
committed
test: Test format consistency
1 parent 0c7279c commit 6b40929

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,11 @@ def test_formats(schema_obj):
182182
)
183183

184184

185+
def test_format_consistency(schema_obj):
186+
"""Test that the "Format" field is consistent with objects.formats."""
187+
assert set(schema_obj.objects.metadata.Format.enum) == schema_obj.objects.formats.keys()
188+
189+
185190
def test_dereferencing():
186191
orig = {
187192
"ReferencedObject": {

0 commit comments

Comments
 (0)