Skip to content

Commit

Permalink
Merge branch 'main' into TW-2708-python-implement-application-json-fo…
Browse files Browse the repository at this point in the history
…r-messages-drafts-api
  • Loading branch information
mrashed-dev authored Mar 5, 2024
2 parents f6c5c87 + ce786a7 commit 5a26103
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ nylas-python Changelog
Unreleased
----------------
* Improved message sending and draft create/update performance
* Change default timeout to match API (90 seconds)

v6.1.0
----------------
Expand Down
2 changes: 1 addition & 1 deletion nylas/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Client:
"""

def __init__(
self, api_key: str, api_uri: str = DEFAULT_SERVER_URL, timeout: int = 30
self, api_key: str, api_uri: str = DEFAULT_SERVER_URL, timeout: int = 90
):
"""
Initialize the Nylas API client.
Expand Down
2 changes: 1 addition & 1 deletion tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def test_client_init_defaults(self):

assert client.api_key == "test-key"
assert client.api_uri == "https://api.us.nylas.com"
assert client.http_client.timeout == 30
assert client.http_client.timeout == 90

def test_client_auth_property(self, client):
assert client.auth is not None
Expand Down

0 comments on commit 5a26103

Please sign in to comment.