-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix test get meeting participants (#110)
* fix get meeting datetime * fix tests and change subscription base time to something realistic * Change to America/Los_Angeles tz and use localize function for email timezones * fix tests
- Loading branch information
Showing
9 changed files
with
47 additions
and
49 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,22 +50,10 @@ def test_get_meeting_participants(app, database): | |
MeetingParticipant(meeting=meeting1, user=user2.key).put() | ||
with app.test_request_context('/v1/metrics/meeting_participants'): | ||
participants = json.loads(meeting_participants()) | ||
assert participants == [ | ||
{ | ||
'date': '2017-10-27T23:00:00', | ||
'meeting': 'agx0ZXN0YmVkLXRlc3RyDQsSB01lZXRpbmcYCgw', | ||
'meeting_title': 'Yelp Weekly', | ||
'participant': '[email protected]', | ||
'time': '04:00PM' | ||
}, | ||
{ | ||
'date': '2017-10-27T23:00:00', | ||
'meeting': 'agx0ZXN0YmVkLXRlc3RyDQsSB01lZXRpbmcYCgw', | ||
'meeting_title': 'Yelp Weekly', | ||
'participant': '[email protected]', | ||
'time': '04:00PM' | ||
} | ||
] | ||
assert len(participants) == 2 | ||
assert set(participants[0].keys()) == set(['date', 'meeting', 'meeting_title', 'participant', 'time']) | ||
assert participants[0]['date'] == database.specs[0].datetime.isoformat() | ||
assert participants[0]['time'] == database.specs[0].datetime.strftime('%I:%M%p') | ||
|
||
|
||
def test_get_meeting_requests(app, database): | ||
|
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