MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / config_dir

Function config_dir

tests/lib/test_client_copy.py:220–225  ·  view source on GitHub ↗
(tmp_path: pathlib.Path, monkeypatch: pytest.MonkeyPatch)

Source from the content-addressed store, hash-verified

218
219@pytest.fixture(autouse=True)
220def 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
228each_client_class = pytest.mark.parametrize("client_class", CLIENT_CLASSES, ids=lambda value: value.__name__)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected