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)
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)
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)
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, )