mirror of
https://github.com/Kozea/Radicale.git
synced 2025-04-04 13:47:37 +03:00
More tests for filtering calendars
This commit is contained in:
parent
ad0b4e5e85
commit
f7d942bfeb
1 changed files with 7 additions and 0 deletions
|
@ -762,6 +762,13 @@ class BaseRequestsMixIn:
|
||||||
assert "href>/calendar.ics/event3.ics</" in answer
|
assert "href>/calendar.ics/event3.ics</" in answer
|
||||||
assert "href>/calendar.ics/event4.ics</" in answer
|
assert "href>/calendar.ics/event4.ics</" in answer
|
||||||
assert "href>/calendar.ics/event5.ics</" in answer
|
assert "href>/calendar.ics/event5.ics</" in answer
|
||||||
|
answer = self._test_filter(["""
|
||||||
|
<C:comp-filter name="VCALENDAR">
|
||||||
|
<C:comp-filter name="VTODO">
|
||||||
|
<C:time-range start="20130801T000000Z" end="20131001T000000Z"/>
|
||||||
|
</C:comp-filter>
|
||||||
|
</C:comp-filter>"""], "event", items=range(1, 6))
|
||||||
|
assert "href>/calendar.ics/event1.ics</" not in answer
|
||||||
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">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue