Example #1
0
    def test_should_push_bumped_tag(self, get_tag_mock, push_tag_mock):
        # given
        get_tag_mock.return_value = None

        # when
        release('fake_pem_path')

        # then
        push_tag_mock.assert_called_with(STARTING_VERSION, 'fake_pem_path')

        # given
        get_tag_mock.return_value = '0.2.0'

        # when
        release('fake_pem_path')

        # then
        push_tag_mock.assert_called_with('0.3.0', 'fake_pem_path')
Example #2
0
    def test_should_push_bumped_tag(self, get_tag_mock, push_tag_mock):
        # given
        get_tag_mock.return_value = None

        # when
        release('fake_pem_path')

        # then
        push_tag_mock.assert_called_with("0.1", 'fake_pem_path')

        # given
        get_tag_mock.return_value = '0.2'

        # when
        release('fake_pem_path')

        # then
        push_tag_mock.assert_called_with('0.3', 'fake_pem_path')
Example #3
0
def _cli_release(args):
    release(args.ssh_identity_file)