Skip to content

Commit

Permalink
fix conftest
Browse files Browse the repository at this point in the history
  • Loading branch information
hanjinliu committed Sep 25, 2024
1 parent 1ac55d4 commit 4314814
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ def backend(request: pytest.FixtureRequest):
pytest.fail("Failed in mock backend")

Check warning on line 23 in tests/conftest.py

View check run for this annotation

Codecov / codecov/patch

tests/conftest.py#L22-L23

Added lines #L22 - L23 were not covered by tests
yield request.param

if request.node.rep_call.failed:
request.function.failed = request.param
try:
if request.node.rep_call.failed:
request.function.failed = request.param

Check warning on line 28 in tests/conftest.py

View check run for this annotation

Codecov / codecov/patch

tests/conftest.py#L28

Added line #L28 was not covered by tests
except AttributeError:
pass
_cleanup(request)

def _cleanup(request: pytest.FixtureRequest):
Expand Down

0 comments on commit 4314814

Please sign in to comment.