From 2b8015db89aae7cba584505485f969fe9de2fec9 Mon Sep 17 00:00:00 2001 From: Matthieu Caneill Date: Tue, 2 Apr 2024 14:11:13 +0200 Subject: [PATCH] Remove pytest workaround to avoid failure when no test is found (#8) Remove redundant workaround. --- tests/conftest.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 588621d..887936b 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -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