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