Function
test_available_hook_installers
(mocker, which_map, expected)
Source from the content-addressed store, hash-verified
| 35 | ], |
| 36 | ) |
| 37 | def 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
Tested by
no test coverage detected