def test_tag_annotate(self, mocker): git = Git() execute = mocker.patch.object(git, 'execute') git.tag('fake', annotation='some annotation') execute.assert_called_with( ['git', 'tag', 'fake', '--annotate', '-m', '"some annotation"'])
def test_tag_annotate(self, mocker): git = Git() execute = mocker.patch.object(git, "execute") git.tag("fake", annotation="some annotation") execute.assert_called_with( ["git", "tag", "fake", "--annotate", "-m", '"some annotation"'])
def test_tag(self): git = Git() with patch.object(git, 'execute') as execute: git.tag('fake') execute.assert_called_with(['git', 'tag', 'fake'])
def test_tag(self): git = Git() with patch.object(git, 'execute') as execute: git.tag('fake') execute.assert_called_with(['git', 'tag', 'fake'])
def test_tag(self, mocker): git = Git() execute = mocker.patch.object(git, 'execute') git.tag('fake') execute.assert_called_with(['git', 'tag', 'fake'])
def test_tag_annotate(self, mocker): git = Git() execute = mocker.patch.object(git, 'execute') git.tag('fake', annotation='some annotation') execute.assert_called_with(['git', 'tag', 'fake', '--annotate', '-m', '"some annotation"'])
def test_tag(self, mocker): git = Git() execute = mocker.patch.object(git, 'execute') git.tag('fake') execute.assert_called_with(['git', 'tag', 'fake'])
def test_tag(self, mocker): git = Git() execute = mocker.patch.object(git, "execute") git.tag("fake") execute.assert_called_with(["git", "tag", "fake"])