示例#1
0
    def test_tag_annotate(self, mocker, caplog):
        bazaar = Bazaar()

        execute = mocker.patch.object(bazaar, 'execute')
        bazaar.tag('fake', annotation='some annotation')
        execute.assert_called_with(['bzr', 'tag', 'fake'])

        record = caplog.record_tuples[0]

        assert record[0] == 'bumpr.vcs'
        assert record[1] == logging.WARNING
示例#2
0
    def test_tag_annotate(self, mocker, caplog):
        bazaar = Bazaar()

        execute = mocker.patch.object(bazaar, 'execute')
        bazaar.tag('fake', annotation='some annotation')
        execute.assert_called_with(['bzr', 'tag', 'fake'])

        record = caplog.record_tuples[0]

        assert record[0] == 'bumpr.vcs'
        assert record[1] == logging.WARNING
示例#3
0
    def test_tag_annotate(self, mocker, caplog):
        bazaar = Bazaar()

        execute = mocker.patch.object(bazaar, "execute")
        bazaar.tag("fake", annotation="some annotation")
        execute.assert_called_with(["bzr", "tag", "fake"])

        record = caplog.record_tuples[0]

        assert record[0] == "bumpr.vcs"
        assert record[1] == logging.WARNING
示例#4
0
    def test_tag(self):
        bazaar = Bazaar()

        with patch.object(bazaar, 'execute') as execute:
            bazaar.tag('fake')
            execute.assert_called_with(['bzr', 'tag', 'fake'])
示例#5
0
    def test_tag(self):
        bazaar = Bazaar()

        with patch.object(bazaar, 'execute') as execute:
            bazaar.tag('fake')
            execute.assert_called_with(['bzr', 'tag', 'fake'])
示例#6
0
    def test_tag(self, mocker, caplog):
        bazaar = Bazaar()

        execute = mocker.patch.object(bazaar, 'execute')
        bazaar.tag('fake')
        execute.assert_called_with(['bzr', 'tag', 'fake'])
示例#7
0
    def test_tag(self, mocker, caplog):
        bazaar = Bazaar()

        execute = mocker.patch.object(bazaar, 'execute')
        bazaar.tag('fake')
        execute.assert_called_with(['bzr', 'tag', 'fake'])
示例#8
0
    def test_tag(self, mocker, caplog):
        bazaar = Bazaar()

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