Пример #1
0
    def test_publish(self, workspace):
        config = Config({
            'file': 'fake.py',
            'publish': 'publish command',
        })

        releaser = Releaser(config)

        with patch('bumpr.releaser.execute') as execute:
            releaser.publish()
            execute.assert_called_with('publish command', replacements=ANY, dryrun=ANY, verbose=ANY)
Пример #2
0
def test_publish(workspace, mocker):
    config = Config({
        'file': 'fake.py',
        'publish': 'publish command',
    })

    releaser = Releaser(config)
    execute = mocker.patch('bumpr.releaser.execute')

    releaser.publish()

    execute.assert_called_with('publish command', replacements=mocker.ANY, dryrun=mocker.ANY, verbose=mocker.ANY)
Пример #3
0
    def test_publish(self):
        config = Config({
            'file': 'fake.py',
            'publish': 'publish command',
        })

        with workspace('fake'):
            releaser = Releaser(config)

        with patch('bumpr.releaser.execute') as execute:
            releaser.publish()
            execute.assert_called_with('publish command',
                                       replacements=ANY,
                                       dryrun=ANY,
                                       verbose=ANY)
Пример #4
0
def test_publish(workspace, mocker):
    config = Config({
        "file": "fake.py",
        "publish": "publish command",
    })

    releaser = Releaser(config)
    execute = mocker.patch("bumpr.releaser.execute")

    releaser.publish()

    execute.assert_called_with(
        "publish command",
        replacements=mocker.ANY,
        dryrun=mocker.ANY,
        verbose=mocker.ANY,
    )