Skip to content

Commit

Permalink
fixing tests and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kraju3 committed May 30, 2024
1 parent 27ea1fd commit fb9400e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion nylas/models/folders.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,3 @@ class ListFolderQueryParams(ListQueryParams):
"""

parent_id: NotRequired[str]

4 changes: 3 additions & 1 deletion nylas/resources/folders.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from typing import Optional

from nylas.config import RequestOverrides
from nylas.handler.api_resources import (
ListableApiResource,
Expand Down Expand Up @@ -31,7 +33,7 @@ class Folders(
def list(
self,
identifier: str,
query_params: ListFolderQueryParams,
query_params: Optional[ListFolderQueryParams] = None,
overrides: RequestOverrides = None,
) -> ListResponse[Folder]:
"""
Expand Down
2 changes: 1 addition & 1 deletion tests/resources/test_folders.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def test_folder_deserialization(self):
def test_list_folders(self, http_client_list_response):
folders = Folders(http_client_list_response)

folders.list(identifier="abc-123")
folders.list(identifier="abc-123",query_params=None)

http_client_list_response._execute.assert_called_once_with(
"GET", "/v3/grants/abc-123/folders", None, None, None, overrides=None
Expand Down

0 comments on commit fb9400e

Please sign in to comment.