From db646d4b24b17cc77818aae84227efa3eecbf213 Mon Sep 17 00:00:00 2001 From: David Greaves Date: Tue, 1 Jul 2025 20:48:27 +0100 Subject: [PATCH] add tests for issue #1812 A report should include: * An expanded event with an expand start inside a recurring event * An expanded event with an expand start and end inside a recurring event Signed-off-by: David Greaves --- radicale/tests/test_expand.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/radicale/tests/test_expand.py b/radicale/tests/test_expand.py index 1070bc77..77de697c 100644 --- a/radicale/tests/test_expand.py +++ b/radicale/tests/test_expand.py @@ -181,6 +181,32 @@ permissions: RrWw""") 1 ) + def test_report_with_expand_property_start_inside(self) -> None: + """Test report with expand property start inside""" + self._test_expand( + "event_daily_rrule", + "20060103T171500Z", + "20060105T000000Z", + ["RECURRENCE-ID:20060103T170000Z", "RECURRENCE-ID:20060104T170000Z"], + ["DTSTART:20060103T170000Z", "DTSTART:20060104T170000Z"], + [], + CONTAINS_TIMES, + 1 + ) + + def test_report_with_expand_property_just_inside(self) -> None: + """Test report with expand property start and end inside event""" + self._test_expand( + "event_daily_rrule", + "20060103T171500Z", + "20060103T171501Z", + ["RECURRENCE-ID:20060103T170000Z"], + ["DTSTART:20060103T170000Z"], + [], + CONTAINS_TIMES, + 1 + ) + def test_report_with_expand_property_all_day_event(self) -> None: """Test report with expand property for all day events""" self._test_expand(