Exemple #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
Exemple #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
Exemple #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
Exemple #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'])
Exemple #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'])
Exemple #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'])
Exemple #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'])
Exemple #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"])