Skip to content

Commit c83c04d

Browse files
committed
test: Validate types.context.__all__ declaration
1 parent 552190f commit c83c04d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/types/test_context.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from bids_validator.types import context
2+
3+
4+
def test_imports():
5+
"""Verify that we do not declare attributes that are not generated."""
6+
for name in context.__all__:
7+
assert hasattr(context, name), f'Failed to import {name} from context'

0 commit comments

Comments
 (0)