Skip to content

Commit

Permalink
Updates conftest to include parametrized unmarked tests
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgondu committed Jul 11, 2024
1 parent 283c269 commit 9219b32
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
4 changes: 0 additions & 4 deletions conftest.py

This file was deleted.

11 changes: 11 additions & 0 deletions src/poli/tests/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
def pytest_collection_modifyitems(items, config):
for item in items:
markers = item.iter_markers()
is_unmarked = True
for marker in markers:
if marker.name != "parametrize":
is_unmarked = False
break

if is_unmarked:
item.add_marker("unmarked")

0 comments on commit 9219b32

Please sign in to comment.