diff --git a/pyproject.toml b/pyproject.toml index ca0759b2..a84f069d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -65,6 +65,6 @@ ignore = ["ANN101", "ANN401", "gitopscli/git_api/git_repo.py" = ["PTH101", "PTH118", "PTH123"] "gitopscli/io_api/tmp_dir.py" = ["PTH103"] "gitopscli/io_api/yaml_util.py" = ["PTH123"] -"tests/git_api/test_git_repo.py" = ["PT018", "PTH101", "PTH103", "PTH110", "PTH123"] +"tests/git_api/test_git_repo.py" = ["PTH101", "PTH103", "PTH110", "PTH123"] "tests/io_api/test_tmp_dir.py" = ["PTH103", "PTH112"] "tests/io_api/test_yaml_util.py" = ["PTH103", "PTH123"] diff --git a/tests/git_api/test_git_repo.py b/tests/git_api/test_git_repo.py index a25950f0..77087df6 100644 --- a/tests/git_api/test_git_repo.py +++ b/tests/git_api/test_git_repo.py @@ -390,7 +390,8 @@ def test_push_commit_hook_error_reason_is_shown(self, logging_mock): with pytest.raises(GitOpsException) as ex: testee.push("master") - assert "pre-receive" in str(ex.value) and "we reject this push" in str(ex.value) + assert "pre-receive" in str(ex.value) + assert "we reject this push" in str(ex.value) logging_mock.info.assert_called_once_with("Pushing branch: %s", "master") def test_get_author_from_last_commit(self):