Skip to content

Commit 4a497c2

Browse files
Merge pull request #2866 from VWS-Python/add-beartype-to-test-helpers
Add @beartype to pytest_collection_modifyitems hook
2 parents d16decf + a99022f commit 4a497c2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
)
1919

2020

21+
@beartype
2122
def pytest_collection_modifyitems(items: list[pytest.Item]) -> None:
2223
"""Apply the beartype decorator to all collected test functions."""
2324
for item in items:

0 commit comments

Comments
 (0)