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

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

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

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

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

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