(request, mocker: MockFixture)
| 135 | |
| 136 | @pytest.fixture(params=["pyproject.toml", ".cz.json", ".cz.yaml"]) |
| 137 | def default_choice(request, mocker: MockFixture): |
| 138 | mocker.patch( |
| 139 | "questionary.select", |
| 140 | side_effect=[ |
| 141 | FakeQuestion(request.param), |
| 142 | FakeQuestion("cz_conventional_commits"), |
| 143 | FakeQuestion("commitizen"), |
| 144 | FakeQuestion("semver"), |
| 145 | ], |
| 146 | ) |
| 147 | mocker.patch("questionary.confirm", return_value=FakeQuestion(True)) |
| 148 | mocker.patch("questionary.text", return_value=FakeQuestion("$version")) |
| 149 | mocker.patch( |
| 150 | "questionary.checkbox", |
| 151 | return_value=FakeQuestion(["commit-msg", "pre-push"]), |
| 152 | ) |
| 153 | return request.param |
| 154 | |
| 155 | |
| 156 | def check_cz_config(config_filepath: str): |
nothing calls this directly
no test coverage detected