mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-20 02:52:11 +00:00
test: adding / removing calendar check
This commit is contained in:
parent
815dba94af
commit
055ed62f16
@ -56,11 +56,13 @@ def test_addremove_event():
|
|||||||
assert (not event_exists(uid))
|
assert (not event_exists(uid))
|
||||||
|
|
||||||
|
|
||||||
#def test_addremove_calendar():
|
def test_addremove_calendar():
|
||||||
# c, cal = connect()
|
c, _ = connect()
|
||||||
# cal_id = random_id()
|
cal_id = random_id()
|
||||||
# #c.principal().make_calendar(name="test", cal_id=cal_id)
|
cal = c.principal().make_calendar(name="test", cal_id=cal_id)
|
||||||
# cal = caldav.Calendar(c, name="TEST", parent=c.principal(), id="12").save()
|
matching = [calendar for calendar in c.principal().calendars() if cal_id in str(calendar.url)]
|
||||||
|
assert len(matching) == 1
|
||||||
|
|
||||||
|
|
||||||
|
c.delete(cal.url)
|
||||||
|
matching = [calendar for calendar in c.principal().calendars() if cal_id in str(calendar.url)]
|
||||||
|
assert len(matching) == 0
|
||||||
|
Loading…
Reference in New Issue
Block a user