1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-09-12 20:30:57 +00:00

Currently passing tests

Signed-off-by: David Greaves <david@dgreaves.com>
This commit is contained in:
David Greaves 2025-07-03 19:48:58 +01:00
parent 27fe8f1d63
commit 02be6419ae

View file

@ -25,6 +25,9 @@ from typing import ClassVar, List
from radicale.tests import BaseTest
from radicale.tests.helpers import get_file_content
from radicale.log import logger
from xml.etree import ElementTree
ONLY_DATES = True
CONTAINS_TIMES = False
@ -144,6 +147,8 @@ permissions: RrWw""")
assert not isinstance(response_with_expand, int)
status, element = response_with_expand["C:calendar-data"]
logger.debug("lbt: element is %s",
ElementTree.tostring(element, encoding='unicode'))
assert status == 200 and element.text
assert "RRULE" not in element.text
assert "BEGIN:VTIMEZONE" not in element.text
@ -209,15 +214,28 @@ permissions: RrWw""")
def test_report_with_expand_property_issue1812(self) -> None:
"""Test report with expand property for issue 1812"""
self._test_expand(
"event_issue1812",
"20250127T183000Z",
"20250127T183001Z",
["RECURRENCE-ID:20250127T180000Z"],
["DTSTART:20250127T180000Z"],
["DTEND:20250127T233000Z"],
CONTAINS_TIMES,
11
)
def test_report_with_expand_property_issue1812_DS(self) -> None:
"""Test report with expand property for issue 1812 - DS active"""
self._test_expand(
"event_issue1812",
"20250627T183000Z",
"20250627T183001Z",
["RECURRENCE-ID:20250627T180000Z"],
["DTSTART:20250627T180000Z"],
[],
["RECURRENCE-ID:20250627T170000Z"],
["DTSTART:20250627T170000Z"],
["DTEND:20250627T223000Z"],
CONTAINS_TIMES,
1
11
)
def test_report_with_expand_property_all_day_event(self) -> None: