Skip to content

Commit

Permalink
Remove pytest workaround to avoid failure when no test is found (#8)
Browse files Browse the repository at this point in the history
Remove redundant workaround.
  • Loading branch information
matthieucan authored Apr 2, 2024
1 parent 188a033 commit 2b8015d
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,7 @@

from dbt_score.models import Model
from dbt_score.rule import Rule, RuleViolation, rule
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
from pytest import fixture


@fixture
Expand Down

0 comments on commit 2b8015d

Please sign in to comment.