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

Function test_available_hook_installers

tests/test_project_info.py:37–41  ·  view source on GitHub ↗
(mocker, which_map, expected)

Source from the content-addressed store, hash-verified

35 ],
36)
37def test_available_hook_installers(mocker, which_map, expected):
38 mocker.patch("shutil.which", side_effect=lambda name: which_map.get(name))
39
40 assert project_info.available_hook_installers() == expected
41 assert project_info.is_pre_commit_installed() is bool(expected)
42
43
44@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected