(*, force_refresh: bool = False)
| 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() |
no test coverage detected