Skip to content

Commit

Permalink
chore(internal): minor formatting changes (#500)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed May 16, 2024
1 parent 7be600f commit 5d896a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ def test_validate_headers(self) -> None:
assert request.headers.get("X-Api-Key") == api_key

client2 = Anthropic(base_url=base_url, api_key=None, _strict_response_validation=True)

with pytest.raises(
TypeError,
match="Could not resolve authentication method. Expected either api_key or auth_token to be set. Or for one of the `X-Api-Key` or `Authorization` headers to be explicitly omitted",
Expand Down Expand Up @@ -1153,6 +1154,7 @@ def test_validate_headers(self) -> None:
assert request.headers.get("X-Api-Key") == api_key

client2 = AsyncAnthropic(base_url=base_url, api_key=None, _strict_response_validation=True)

with pytest.raises(
TypeError,
match="Could not resolve authentication method. Expected either api_key or auth_token to be set. Or for one of the `X-Api-Key` or `Authorization` headers to be explicitly omitted",
Expand Down

0 comments on commit 5d896a2

Please sign in to comment.