(request, tmp_path, monkeypatch)
| 162 | |
| 163 | @pytest.fixture |
| 164 | def config_files_manager(request, tmp_path, monkeypatch): |
| 165 | monkeypatch.chdir(tmp_path) |
| 166 | filename = request.param |
| 167 | path = tmp_path / filename |
| 168 | path.parent.mkdir(parents=True, exist_ok=True) |
| 169 | with path.open("w", encoding="utf-8") as f: |
| 170 | if "toml" in filename: |
| 171 | f.write(PYPROJECT) |
| 172 | elif "json" in filename: |
| 173 | json.dump(DICT_CONFIG, f) |
| 174 | elif "yaml" in filename: |
| 175 | yaml.dump(DICT_CONFIG, f) |
| 176 | return |
| 177 | |
| 178 | |
| 179 | @pytest.mark.usefixtures("in_repo_root") |
nothing calls this directly
no outgoing calls
no test coverage detected