Skip to content

Commit

Permalink
Remove pytest workaround to avoid failure when no test is found
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieucan committed Apr 2, 2024
1 parent 188a033 commit 2859994
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@
from pytest import ExitCode, Session, fixture


def pytest_sessionfinish(session: Session, exitstatus: int):
"""Avoid ci failure if no tests are found."""
if exitstatus == ExitCode.NO_TESTS_COLLECTED:
session.exitstatus = ExitCode.OK


@fixture
def raw_manifest() -> Any:
"""Mock the raw manifest."""
Expand Down

0 comments on commit 2859994

Please sign in to comment.