Ejemplo n.º 1
0
    def test_clean(self, workspace):
        config = Config({
            'file': 'fake.py',
            'clean': 'clean command',
        })
        releaser = Releaser(config)

        with patch('bumpr.releaser.execute') as execute:
            releaser.clean()
            execute.assert_called_with('clean command', replacements=ANY, dryrun=ANY, verbose=ANY)
Ejemplo n.º 2
0
def test_clean(workspace, mocker):
    config = Config({
        'file': 'fake.py',
        'clean': 'clean command',
    })
    releaser = Releaser(config)
    execute = mocker.patch('bumpr.releaser.execute')

    releaser.clean()

    execute.assert_called_with('clean command', replacements=mocker.ANY, dryrun=mocker.ANY, verbose=mocker.ANY)
Ejemplo n.º 3
0
    def test_clean(self):
        config = Config({
            'file': 'fake.py',
            'clean': 'clean command',
        })
        with workspace('fake'):
            releaser = Releaser(config)

        with patch('bumpr.releaser.execute') as execute:
            releaser.clean()
            execute.assert_called_with('clean command',
                                       replacements=ANY,
                                       dryrun=ANY,
                                       verbose=ANY)
Ejemplo n.º 4
0
def test_clean(workspace, mocker):
    config = Config({
        "file": "fake.py",
        "clean": "clean command",
    })
    releaser = Releaser(config)
    execute = mocker.patch("bumpr.releaser.execute")

    releaser.clean()

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