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

Method _isolate

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

Source from the content-addressed store, hash-verified

259
260 @pytest.fixture(autouse=True)
261 def _isolate(self, monkeypatch: pytest.MonkeyPatch, tmp_path: pathlib.Path) -> None:
262 for var in _ALL_ENV:
263 monkeypatch.delenv(var, raising=False)
264 monkeypatch.setenv("ANTHROPIC_CONFIG_DIR", str(tmp_path))
265
266 @pytest.fixture
267 def windows_without_fchmod(self, monkeypatch: pytest.MonkeyPatch) -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected