Esempio n. 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"'])
Esempio n. 2
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"'])
Esempio n. 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'])
Esempio n. 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'])
Esempio n. 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'])
Esempio n. 6
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"'])
Esempio n. 7
0
    def test_tag(self, mocker):
        git = Git()

        execute = mocker.patch.object(git, 'execute')
        git.tag('fake')
        execute.assert_called_with(['git', 'tag', 'fake'])
Esempio n. 8
0
    def test_tag(self, mocker):
        git = Git()

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