(tmp_path: pathlib.Path, monkeypatch: pytest.MonkeyPatch)
| 218 | |
| 219 | @pytest.fixture(autouse=True) |
| 220 | def config_dir(tmp_path: pathlib.Path, monkeypatch: pytest.MonkeyPatch) -> None: |
| 221 | config_path = tmp_path / "configs" / "fake-profile.json" |
| 222 | config_path.parent.mkdir() |
| 223 | config_path.write_text(json.dumps(PROFILE_CONFIG)) |
| 224 | config_path.chmod(0o644) |
| 225 | monkeypatch.setenv("ANTHROPIC_CONFIG_DIR", str(tmp_path)) |
| 226 | |
| 227 | |
| 228 | each_client_class = pytest.mark.parametrize("client_class", CLIENT_CLASSES, ids=lambda value: value.__name__) |
nothing calls this directly
no outgoing calls
no test coverage detected