Test time range filter with overwritten recurrence

This commit is contained in:
Unrud 2017-08-03 23:25:50 +02:00
parent 748519e94d
commit ae897c1cd3
2 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ BEGIN:VEVENT
UID:event7 UID:event7
RECURRENCE-ID;TZID=Europe/Paris:20170702T080000 RECURRENCE-ID;TZID=Europe/Paris:20170702T080000
DTSTART;TZID=Europe/Paris:20170702T080000 DTSTART;TZID=Europe/Paris:20170702T080000
DTEND;TZID=Europe/Paris:20170702T080000 DTEND;TZID=Europe/Paris:20170702T090000
CREATED:20170601T060000Z CREATED:20170601T060000Z
DTSTAMP:20170601T060000Z DTSTAMP:20170601T060000Z
LAST-MODIFIED:20170601T060000Z LAST-MODIFIED:20170601T060000Z

View File

@ -710,11 +710,11 @@ class BaseRequestsMixIn:
answer = self._test_filter([""" answer = self._test_filter(["""
<C:comp-filter name="VCALENDAR"> <C:comp-filter name="VCALENDAR">
<C:comp-filter name="VEVENT"> <C:comp-filter name="VEVENT">
<C:time-range start="20170701T080000Z"/> <C:time-range start="20170702T070000Z" end="20170704T060000Z"/>
</C:comp-filter> </C:comp-filter>
</C:comp-filter>"""], items=(6, 7, 8)) </C:comp-filter>"""], items=(6, 7, 8))
assert "href>/calendar.ics/event6.ics</" not in answer assert "href>/calendar.ics/event6.ics</" not in answer
assert "href>/calendar.ics/event7.ics</" in answer assert "href>/calendar.ics/event7.ics</" not in answer
assert "href>/calendar.ics/event8.ics</" not in answer assert "href>/calendar.ics/event8.ics</" not in answer
def test_time_range_filter_events_rrule(self): def test_time_range_filter_events_rrule(self):