1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-09-15 20:36:55 +00:00

add test_report_with_max_occur and fix vevent count issue found

Signed-off-by: David Greaves <david@dgreaves.com>
This commit is contained in:
David Greaves 2025-07-08 16:09:28 +01:00
parent 3f4f405554
commit 83a7853405
3 changed files with 117 additions and 2 deletions

View file

@ -203,7 +203,7 @@ permissions: RrWw""")
assert "RRULE" in element.text
status, headers, answer = self.request(
status, _, _ = self.request(
"REPORT", "/calendar.ics/",
self._req_with_expand(expected_uid, start, end),
check=check)
@ -332,3 +332,18 @@ permissions: RrWw""")
"20060501T000000Z",
check=400
)
def test_report_with_max_occur(self) -> None:
"""Test report with too many vevents"""
self.configure({"reporting": {"max_freebusy_occurrence": 10}})
uid = "event_multiple_too_many"
start = "20130901T000000Z"
end = "20130902T000000Z"
check = 400
status, responses = self.report("/calendar.ics/",
self._req_without_expand(uid, start, end),
check=check)
assert len(responses) == 0
assert status == check