From 02be6419aec42e0f2de32ede305fa0b0b1e34c2a Mon Sep 17 00:00:00 2001 From: David Greaves Date: Thu, 3 Jul 2025 19:48:58 +0100 Subject: [PATCH] Currently passing tests Signed-off-by: David Greaves --- radicale/tests/test_expand.py | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/radicale/tests/test_expand.py b/radicale/tests/test_expand.py index 3055eafb..c9cee5f9 100644 --- a/radicale/tests/test_expand.py +++ b/radicale/tests/test_expand.py @@ -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: