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

Method provider

tests/lib/test_credentials.py:1609–1611  ·  view source on GitHub ↗
(*, force_refresh: bool = False)

Source from the content-addressed store, hash-verified

1607 calls: List[int] = []
1608
1609 def provider(*, force_refresh: bool = False) -> Any: # noqa: ARG001
1610 calls.append(1)
1611 return "sk-a-raw-string"
1612
1613 with pytest.raises(AnthropicError, match="returned str instead of an AccessToken"):
1614 TokenCache(provider).get_token()

Calls 6

AccessTokenClass · 0.90
invalidateMethod · 0.80
appendMethod · 0.45
waitMethod · 0.45
setMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected