1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-08-28 19:40:54 +00:00

extend test for items having tzinfo only on dtstart or dtend set for whatever reason, overtake tzinfo from the other one

This commit is contained in:
Peter Bieringer 2025-08-22 07:51:15 +02:00
parent 2a808fd373
commit 7f28f69452

View file

@ -306,6 +306,22 @@ permissions: RrWw""")
for uid2 in uids[i + 1:]:
assert uid1 != uid2
def test_add_event_tz_dtend_only(self) -> None:
"""Add an event having TZ only on DTEND."""
self.mkcalendar("/calendar.ics/")
event = get_file_content("event_issue1847_1.ics")
path = "/calendar.ics/event_issue1847_1.ics"
self.put(path, event)
_, headers, answer = self.request("GET", path, check=200)
def test_add_event_tz_dtstart_only(self) -> None:
"""Add an event having TZ only on DTSTART."""
self.mkcalendar("/calendar.ics/")
event = get_file_content("event_issue1847_2.ics")
path = "/calendar.ics/event_issue1847_2.ics"
self.put(path, event)
_, headers, answer = self.request("GET", path, check=200)
def test_verify(self) -> None:
"""Verify the storage."""
contacts = get_file_content("contact_multiple.vcf")