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

Function _fake_refresh

tests/lib/test_google_cloud.py:520–521  ·  view source on GitHub ↗
(creds: _FakeCredentials)

Source from the content-addressed store, hash-verified

518
519 # Avoid the real google-auth Request import (optional dep, not installed here).
520 def _fake_refresh(creds: _FakeCredentials) -> None:
521 creds.refresh(None)
522
523 monkeypatch.setattr("anthropic.lib.google_cloud._client._refresh_credentials", _fake_refresh)
524 creds = _FakeCredentials(token="stale", expired=True)

Callers

nothing calls this directly

Calls 1

refreshMethod · 0.45

Tested by

no test coverage detected