-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add method and test webinar report (#1213)
* add method and test webinar report * typo * typo * typo * clean up * undo * typo * fix test * delete commented out stuff * remove default param value * ruff format
- Loading branch information
1 parent
b943598
commit 53a866e
Showing
2 changed files
with
40 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -312,6 +312,29 @@ def test_get_past_webinar_participants(self, m): | |
m.get(ZOOM_URI + "report/webinars/123/participants", json=participants) | ||
assert_matching_tables(self.zoom.get_past_webinar_participants(123), tbl) | ||
|
||
@requests_mock.Mocker() | ||
def test_get_past_webinar_report(self, m): | ||
report = { | ||
"custom_keys": [{"key": "Host Nation", "value": "US"}], | ||
"dept": "HR", | ||
"duration": 2, | ||
"end_time": "2022-03-15T07:42:22Z", | ||
"id": 345678902224, | ||
"participants_count": 4, | ||
"start_time": "2022-03-15T07:40:46Z", | ||
"topic": "My Meeting", | ||
"total_minutes": 3, | ||
"tracking_fields": [{"field": "Host Nation", "value": "US"}], | ||
"type": 4, | ||
"user_email": "[email protected]", | ||
"user_name": "Jill Chill", | ||
"uuid": "4444AAAiAAAAAiAiAiiAii==", | ||
} | ||
|
||
m.post(ZOOM_AUTH_CALLBACK, json={"access_token": "fakeAccessToken"}) | ||
m.get(ZOOM_URI + "report/webinars/123", json=report) | ||
assert_matching_tables(self.zoom.get_past_webinar_report(123), report) | ||
|
||
@requests_mock.Mocker() | ||
def test_get_webinar_registrants(self, m): | ||
registrants = { | ||
|