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

Function _fail

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

Source from the content-addressed store, hash-verified

381 respx_mock.post(re.compile(r"https://example\.test/.*")).mock(return_value=httpx.Response(200, json={"foo": "bar"}))
382
383 def _fail() -> Any:
384 raise AssertionError("ADC discovery must not run when an explicit credential source is set")
385
386 monkeypatch.setattr("anthropic.lib.google_cloud._client._load_adc_credentials", _fail)
387

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected