(mocker: MockFixture)
| 121 | |
| 122 | @pytest.fixture |
| 123 | def pre_commit_installed(mocker: MockFixture): |
| 124 | # Assume only `pre-commit` is installed |
| 125 | mocker.patch( |
| 126 | "commitizen.project_info.available_hook_installers", |
| 127 | return_value=["pre-commit"], |
| 128 | ) |
| 129 | # And installation success (i.e. no exception raised) |
| 130 | mocker.patch( |
| 131 | "commitizen.cmd.run", |
| 132 | return_value=cmd.Command("0.0.1", "", b"", b"", 0), |
| 133 | ) |
| 134 | |
| 135 | |
| 136 | @pytest.fixture(params=["pyproject.toml", ".cz.json", ".cz.yaml"]) |
nothing calls this directly
no outgoing calls
no test coverage detected