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

Method _isolate

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

Source from the content-addressed store, hash-verified

1456
1457 @pytest.fixture(autouse=True)
1458 def _isolate(self, monkeypatch: pytest.MonkeyPatch, tmp_path: pathlib.Path) -> None:
1459 for var in _ALL_ENV:
1460 monkeypatch.delenv(var, raising=False)
1461 monkeypatch.setenv("ANTHROPIC_CONFIG_DIR", str(tmp_path))
1462
1463 def test_env_fills_missing_organization_id(self, tmp_path: pathlib.Path, monkeypatch: pytest.MonkeyPatch) -> None:
1464 monkeypatch.setenv("ANTHROPIC_ORGANIZATION_ID", "org_from_env")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected