MCPcopy Create free account
hub / github.com/commitizen-tools/commitizen / test_run_error

Function test_run_error

tests/test_bump_hooks.py:28–36  ·  view source on GitHub ↗
(mocker: MockFixture)

Source from the content-addressed store, hash-verified

26
27
28def 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
39def test_format_env():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected