-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_autozoom.py
56 lines (51 loc) · 1.9 KB
/
test_autozoom.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
from .autozoom import *
event = {
"attendees": [
{
"email": "[email protected]",
"responseStatus": "accepted",
"self": True,
},
],
"created": "2020-01-17T04:29:51.000Z",
"creator": {"email": "[email protected]"},
"description": "\n"
"──────────\n"
"\n"
"Bernadette Coyer is inviting you to a scheduled Zoom "
"meeting. \n"
"\n"
"Topic: Bernadette Coyer's Personal Meeting Room\n"
"\n"
"Join from PC, Mac, Linux, iOS or Android: "
"https://iress.zoom.us/j/93142918532?pwd=Um1vMklOdzNuNTZ3NHJJbWNsT3Axdz09\n"
"\n"
"Or iPhone one-tap :\n"
" United Kingdom: +441314601196,,7844249244# or "
" International numbers available: "
"https://iress.zoom.us/u/ab8ZGoIk7V",
"end": {"dateTime": "2020-10-05T09:30:00+11:00"},
"etag": '"3202868178846000"',
"guestsCanModify": True,
"htmlLink": "https://www.google.com/calendar/event?eid=MjhxNDY0Z29pb25jNXAyNm45Zzg5bGg1Y3FfMjAyMDEwMDRUMjIxNTAwWiBqb25hdGhhbi5uZXduaGFtQGlyZXNzLmNvbQ",
"iCalUID": "[email protected]",
"id": "28q464goionc5p26n9g89lh5cq_20201004T221500Z",
"kind": "calendar#event",
"organizer": {"email": "[email protected]"},
"originalStartTime": {"dateTime": "2020-10-05T09:15:00+11:00"},
"recurringEventId": "28q464goionc5p26n9g89lh5cq_R20200927T231500",
"reminders": {"useDefault": True},
"sequence": 1,
"start": {"dateTime": "2020-10-05T09:15:00+11:00"},
"status": "confirmed",
"summary": "Ants Standup",
"updated": "2020-09-30T02:48:09.423Z",
}
def test_zoomlink():
assert (
getzoomlink(event)
== "https://iress.zoom.us/j/93142918532?pwd=Um1vMklOdzNuNTZ3NHJJbWNsT3Axdz09"
)
def test_timeuntilstart():
interval = timeuntilstart(event)
assert isinstance(interval, timedelta)