We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 771af2c commit 1ffd959Copy full SHA for 1ffd959
tests/test_client.py
@@ -956,7 +956,7 @@ def test_refresh_auth_headers_key(self) -> None:
956
assert client.auth_headers.get("Authorization") == "Bearer test_api_key"
957
958
@pytest.mark.respx()
959
- def test_bearer_token_refresh(self, respx_mock: MockRouter) -> None:
+ def test_api_key_refresh_on_retry(self, respx_mock: MockRouter) -> None:
960
respx_mock.post(base_url + "/chat/completions").mock(
961
side_effect=[
962
httpx.Response(500, json={"error": "server error"}),
0 commit comments