Skip to content

Commit

Permalink
Add: unittest for git.tag
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalholthaus authored and bjoernricks committed Oct 19, 2022
1 parent 5672f04 commit 0f3b80b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/git/test_git.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,3 +233,10 @@ def test_commit_without_verify(self, exec_git_mock):
exec_git_mock.assert_called_once_with(
"commit", "--no-verify", "-m", "Add foo", cwd=None
)

@patch("pontos.git.git.exec_git")
def test_tag(self, exec_git_mock):
git = Git()
git.tag(tag="test")

exec_git_mock.assert_called_once_with("tag", "test", cwd=None)

0 comments on commit 0f3b80b

Please sign in to comment.