(mocker: MockFixture)
| 26 | |
| 27 | |
| 28 | def test_run_error(mocker: MockFixture): |
| 29 | bump_hooks = ["pre_bump_hook", "pre_bump_hook_1"] |
| 30 | |
| 31 | cmd_run_mock = mocker.Mock() |
| 32 | cmd_run_mock.return_value = 1 |
| 33 | mocker.patch.object(cmd, "run_interactive", cmd_run_mock) |
| 34 | |
| 35 | with pytest.raises(RunHookError): |
| 36 | hooks.run(bump_hooks) |
| 37 | |
| 38 | |
| 39 | def test_format_env(): |
nothing calls this directly
no outgoing calls
no test coverage detected