Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.20.7"
".": "0.20.8"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 35
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch-55ff507660a4f8b4a1809ca01861098c7bc72e8e6ea038fb3aa8c0a3b9a954e2.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch-a278884107d48c04133891fff0d1123a97169758e2baa82411009277932795af.yml
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## 0.20.8 (2024-05-17)

Full Changelog: [v0.20.7...v0.20.8](https://github.com/Finch-API/finch-api-python/compare/v0.20.7...v0.20.8)

### Chores

* **internal:** minor formatting changes ([#385](https://github.com/Finch-API/finch-api-python/issues/385)) ([e37920b](https://github.com/Finch-API/finch-api-python/commit/e37920b87a1d906a4df0b6cdf38a1ca29c04a9d0))
* **internal:** resolve spec formatting issue ([#388](https://github.com/Finch-API/finch-api-python/issues/388)) ([aab9507](https://github.com/Finch-API/finch-api-python/commit/aab9507ab67f3d208c1f5c920be553f000629ab6))
* **tests:** update some example values ([#387](https://github.com/Finch-API/finch-api-python/issues/387)) ([2a258bf](https://github.com/Finch-API/finch-api-python/commit/2a258bfbbf778a399e30924531e36fc7106de611))

## 0.20.7 (2024-05-14)

Full Changelog: [v0.20.6...v0.20.7](https://github.com/Finch-API/finch-api-python/compare/v0.20.6...v0.20.7)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "finch-api"
version = "0.20.7"
version = "0.20.8"
description = "The official Python library for the Finch API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/finch/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "finch"
__version__ = "0.20.7" # x-release-please-version
__version__ = "0.20.8" # x-release-please-version
4 changes: 2 additions & 2 deletions tests/api_resources/test_access_tokens.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def test_method_create(self, client: Finch) -> None:
def test_method_create_with_all_params(self, client: Finch) -> None:
access_token = client.access_tokens.create(
code="<your_authorization_code>",
client_id="12345678-1234-1234-1234-123456789ABC",
client_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
client_secret="<your_client_secret>",
redirect_uri="https://example.com",
)
Expand Down Expand Up @@ -73,7 +73,7 @@ async def test_method_create(self, async_client: AsyncFinch) -> None:
async def test_method_create_with_all_params(self, async_client: AsyncFinch) -> None:
access_token = await async_client.access_tokens.create(
code="<your_authorization_code>",
client_id="12345678-1234-1234-1234-123456789ABC",
client_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
client_secret="<your_client_secret>",
redirect_uri="https://example.com",
)
Expand Down
2 changes: 2 additions & 0 deletions tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,7 @@ def test_validate_headers(self) -> None:
client_secret=client_secret,
_strict_response_validation=True,
)

with pytest.raises(
TypeError,
match="Could not resolve authentication method. Expected either access_token, sandbox_client_id or sandbox_client_secret to be set. Or for one of the `Authorization` or `Authorization` headers to be explicitly omitted",
Expand Down Expand Up @@ -1300,6 +1301,7 @@ def test_validate_headers(self) -> None:
client_secret=client_secret,
_strict_response_validation=True,
)

with pytest.raises(
TypeError,
match="Could not resolve authentication method. Expected either access_token, sandbox_client_id or sandbox_client_secret to be set. Or for one of the `Authorization` or `Authorization` headers to be explicitly omitted",
Expand Down