Skip to content

Commit

Permalink
ruff: fix PT018
Browse files Browse the repository at this point in the history
  • Loading branch information
patrit committed Nov 6, 2023
1 parent 5be9799 commit 5495fc1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,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"]
3 changes: 2 additions & 1 deletion tests/git_api/test_git_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 5495fc1

Please sign in to comment.