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

Method refresh

tests/lib/test_vertex.py:666–667  ·  view source on GitHub ↗
(self, _request: object)

Source from the content-addressed store, hash-verified

664
665 class FakeCredentials:
666 def refresh(self, _request: object) -> None:
667 raise AssertionError("should not be reached: building the request needs google-auth")
668
669 with pytest.raises(MissingDependencyError, match=r"anthropic\[vertex\]"):
670 refresh_auth(cast(Any, FakeCredentials()))

Callers 2

load_default_credentialsFunction · 0.45
refresh_credentialsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected