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

Method _isolate

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

Source from the content-addressed store, hash-verified

264
265 @pytest.fixture(autouse=True)
266 def _isolate(self, monkeypatch: pytest.MonkeyPatch, tmp_path: pathlib.Path) -> None:
267 for var in _ALL_ENV:
268 monkeypatch.delenv(var, raising=False)
269 monkeypatch.setenv("ANTHROPIC_CONFIG_DIR", str(tmp_path))
270
271 @pytest.fixture
272 def windows_without_fchmod(self, monkeypatch: pytest.MonkeyPatch) -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected