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

Function slow_load

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

Source from the content-addressed store, hash-verified

416 load_calls = 0
417
418 def slow_load() -> Any:
419 nonlocal load_calls
420 load_calls += 1
421 time.sleep(0.05)
422 return _FakeCredentials(token="adc-token"), None
423
424 monkeypatch.setattr("anthropic.lib.google_cloud._client._load_adc_credentials", slow_load)
425 client = AnthropicGoogleCloud(base_url="https://example.test/", workspace_id="wrkspc_x")

Callers

nothing calls this directly

Calls 1

_FakeCredentialsClass · 0.85

Tested by

no test coverage detected