diff --git a/src/sp_repo_review/checks/pyproject.py b/src/sp_repo_review/checks/pyproject.py index 36b91acb..595a7e42 100644 --- a/src/sp_repo_review/checks/pyproject.py +++ b/src/sp_repo_review/checks/pyproject.py @@ -264,7 +264,7 @@ def check(pytest: tuple[PytestFile, dict[str, Any]]) -> bool: ``` """ _, options = pytest - return "log_cli_level" in options or "log_level" in options + return "log_level" in options class PP305(PyProject): diff --git a/tests/test_pyproject.py b/tests/test_pyproject.py index bf69fdd7..3af61d2e 100644 --- a/tests/test_pyproject.py +++ b/tests/test_pyproject.py @@ -278,11 +278,11 @@ def test_PP304_okay(): assert compute_check("PP304", pytest=(PytestFile.LEGACY_PYPROJECT, toml)).result -def test_PP304_alt_okay(): +def test_PP304_alt_not_okay(): toml = toml_loads(""" log_cli_level = "INFO" """) - assert compute_check("PP304", pytest=(PytestFile.LEGACY_PYPROJECT, toml)).result + assert not compute_check("PP304", pytest=(PytestFile.LEGACY_PYPROJECT, toml)).result def test_PP304_missing():