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

Function slow_load

tests/lib/test_google_cloud.py:615–619  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

613 load_calls = 0
614
615 def slow_load() -> Any:
616 nonlocal load_calls
617 load_calls += 1
618 time.sleep(0.05)
619 return _FakeCredentials(token="adc-token"), None
620
621 monkeypatch.setattr("anthropic.lib.google_cloud._client._load_adc_credentials", slow_load)
622 client = AnthropicGoogleCloud(base_url="https://example.test/", workspace_id="wrkspc_x")

Callers

nothing calls this directly

Calls 2

_FakeCredentialsClass · 0.85
sleepMethod · 0.80

Tested by

no test coverage detected