-
Notifications
You must be signed in to change notification settings - Fork 15.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Add type ignore comments for Google Calendar tool classes
- Loading branch information
1 parent
62b997e
commit a95891e
Showing
9 changed files
with
19 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ def test_create_simple_event() -> None: | |
tool_input = { | ||
"summary": "Event summary", | ||
"start_datetime": "2025-07-11 14:00:00", | ||
"end_datetime": "2025-07-11 15:30:00" | ||
"end_datetime": "2025-07-11 15:30:00", | ||
} | ||
result = tool.run(tool_input) | ||
assert tool.args_schema is not None | ||
|
@@ -27,7 +27,7 @@ def test_create_event_with_description_and_location() -> None: | |
"start_datetime": "2025-07-11 14:00:00", | ||
"end_datetime": "2025-07-11 15:30:00", | ||
"description": "Event description", | ||
"location": "Sante Fe, Mexico City" | ||
"location": "Sante Fe, Mexico City", | ||
} | ||
result = tool.run(tool_input) | ||
assert tool.args_schema is not None | ||
|
@@ -42,7 +42,7 @@ def test_create_event_with_attendees() -> None: | |
"summary": "Event summary", | ||
"start_datetime": "2025-07-11 14:00:00", | ||
"end_datetime": "2025-07-11 15:30:00", | ||
"attendees": ["[email protected]", "[email protected]"] | ||
"attendees": ["[email protected]", "[email protected]"], | ||
} | ||
result = tool.run(tool_input) | ||
assert tool.args_schema is not None | ||
|
@@ -59,8 +59,8 @@ def test_create_event_with_reminders() -> None: | |
"end_datetime": "2025-07-11 15:30:00", | ||
"reminders": [ | ||
{"method": "email", "minutes": 10}, | ||
{"method": "popup", "minutes": 30} | ||
] | ||
{"method": "popup", "minutes": 30}, | ||
], | ||
} | ||
result = tool.run(tool_input) | ||
assert tool.args_schema is not None | ||
|
@@ -76,14 +76,15 @@ def test_create_event_with_recurrence() -> None: | |
"start_datetime": "2025-07-11 14:00:00", | ||
"end_datetime": "2025-07-11 15:30:00", | ||
"recurrence": { | ||
'FREQ': 'WEEKLY', | ||
'COUNT': 10 | ||
} | ||
"FREQ": "WEEKLY", | ||
"COUNT": 10, | ||
}, | ||
} | ||
result = tool.run(tool_input) | ||
assert tool.args_schema is not None | ||
assert result.startswith("Event created:") | ||
|
||
|
||
def test_create_event_with_conference_data() -> None: | ||
"""Test google calendar create event with conference data.""" | ||
mock_api_resource = MagicMock() | ||
|
@@ -92,7 +93,7 @@ def test_create_event_with_conference_data() -> None: | |
"summary": "Event summary", | ||
"start_datetime": "2025-07-11 14:00:00", | ||
"end_datetime": "2025-07-11 15:30:00", | ||
"conference_data": True | ||
"conference_data": True, | ||
} | ||
result = tool.run(tool_input) | ||
assert tool.args_schema is not None | ||
|