Procházet zdrojové kódy

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 <david@dgreaves.com>
David Greaves před 8 měsíci
rodič
revize
db646d4b24
1 změnil soubory, kde provedl 26 přidání a 0 odebrání
  1. 26 0
      radicale/tests/test_expand.py

+ 26 - 0
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(