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

Method provider

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

Source from the content-addressed store, hash-verified

1612 calls: List[int] = []
1613
1614 def provider(*, force_refresh: bool = False) -> Any: # noqa: ARG001
1615 calls.append(1)
1616 return "sk-a-raw-string"
1617
1618 with pytest.raises(AnthropicError, match="returned str instead of an AccessToken"):
1619 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