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

Method _isolate

tests/lib/test_credentials.py:219–222  ·  view source on GitHub ↗
(self, monkeypatch: pytest.MonkeyPatch, tmp_path: pathlib.Path)

Source from the content-addressed store, hash-verified

217
218 @pytest.fixture(autouse=True)
219 def _isolate(self, monkeypatch: pytest.MonkeyPatch, tmp_path: pathlib.Path) -> None:
220 for var in _ALL_ENV:
221 monkeypatch.delenv(var, raising=False)
222 monkeypatch.setenv("ANTHROPIC_CONFIG_DIR", str(tmp_path))
223
224 # -- "type": "external" ------------------------------------------------
225

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected