generated from cds-snc/project-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: raise errors for catch statements in calling func * fix: handle errors on getting users details * feat: introduce retry request util function * fix: properly handle errors * fix: reorder args position * fix: reorder args position * fix: lint
- Loading branch information
Showing
8 changed files
with
250 additions
and
63 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -470,11 +470,12 @@ def test_insert_event_api_call_error( | |
emails = ["[email protected]", "[email protected]"] | ||
title = "Test Event" | ||
document_id = "test_document_id" | ||
google_calendar.insert_event(start, end, emails, title, document_id) | ||
assert ( | ||
"An unexpected error occurred in function 'integrations.google_workspace.google_calendar:insert_event': API call error" | ||
in caplog.text | ||
) | ||
with pytest.raises(Exception): | ||
google_calendar.insert_event(start, end, emails, title, document_id) | ||
assert ( | ||
"An unexpected error occurred in function 'integrations.google_workspace.google_calendar:insert_event': API call error" | ||
in caplog.text | ||
) | ||
assert not mock_convert_string_to_camel_case.called | ||
assert mock_os_environ_get.called | ||
assert not mock_handle_errors.called | ||
|
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
Oops, something went wrong.