コード例 #1
0
    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"'])
コード例 #2
0
ファイル: test_vcs.py プロジェクト: noirbizarre/bumpr
    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"'])
コード例 #3
0
    def test_tag(self):
        mercurial = Mercurial()

        with patch.object(mercurial, 'execute') as execute:
            mercurial.tag('fake')
            execute.assert_called_with(['hg', 'tag', 'fake'])
コード例 #4
0
    def test_tag(self):
        mercurial = Mercurial()

        with patch.object(mercurial, 'execute') as execute:
            mercurial.tag('fake')
            execute.assert_called_with(['hg', 'tag', 'fake'])
コード例 #5
0
    def test_tag(self, mocker):
        mercurial = Mercurial()

        execute = mocker.patch.object(mercurial, 'execute')
        mercurial.tag('fake')
        execute.assert_called_with(['hg', 'tag', 'fake'])
コード例 #6
0
ファイル: test_vcs.py プロジェクト: noirbizarre/bumpr
    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"'])
コード例 #7
0
ファイル: test_vcs.py プロジェクト: noirbizarre/bumpr
    def test_tag(self, mocker):
        mercurial = Mercurial()

        execute = mocker.patch.object(mercurial, 'execute')
        mercurial.tag('fake')
        execute.assert_called_with(['hg', 'tag', 'fake'])
コード例 #8
0
ファイル: test_vcs.py プロジェクト: noirbizarre/bumpr
    def test_tag(self, mocker):
        mercurial = Mercurial()

        execute = mocker.patch.object(mercurial, "execute")
        mercurial.tag("fake")
        execute.assert_called_with(["hg", "tag", "fake"])