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