def test_test(self, workspace): config = Config({ 'file': 'fake.py', 'tests': 'test command', }) releaser = Releaser(config) with patch('bumpr.releaser.execute') as execute: releaser.test() execute.assert_called_with('test command', replacements=ANY, dryrun=ANY, verbose=ANY)
def test_test(workspace, mocker): config = Config({ 'file': 'fake.py', 'tests': 'test command', }) releaser = Releaser(config) execute = mocker.patch('bumpr.releaser.execute') releaser.test() execute.assert_called_with('test command', replacements=mocker.ANY, dryrun=mocker.ANY, verbose=mocker.ANY)
def test_skip_test(self, workspace): config = Config({ 'file': 'fake.py', 'tests': 'test command', 'skip_tests': True, }) releaser = Releaser(config) with patch('bumpr.releaser.execute') as execute: releaser.test() assert not execute.called
def test_skip_test(workspace, mocker): config = Config({ 'file': 'fake.py', 'tests': 'test command', 'skip_tests': True, }) releaser = Releaser(config) execute = mocker.patch('bumpr.releaser.execute') releaser.test() assert not execute.called
def test_skip_test(workspace, mocker): config = Config({ "file": "fake.py", "tests": "test command", "skip_tests": True, }) releaser = Releaser(config) execute = mocker.patch("bumpr.releaser.execute") releaser.test() assert not execute.called
def test_test(self): config = Config({ 'file': 'fake.py', 'tests': 'test command', }) with workspace('fake'): releaser = Releaser(config) with patch('bumpr.releaser.execute') as execute: releaser.test() execute.assert_called_with('test command', replacements=ANY, dryrun=ANY, verbose=ANY)
def test_test(workspace, mocker): config = Config({ "file": "fake.py", "tests": "test command", }) releaser = Releaser(config) execute = mocker.patch("bumpr.releaser.execute") releaser.test() execute.assert_called_with("test command", replacements=mocker.ANY, dryrun=mocker.ANY, verbose=mocker.ANY)