reproducing the error if no : is given

see https://github.com/collective/icalendar/issues/348
issue_348
Nicco Kunzmann 2022-10-05 21:07:26 +01:00
rodzic 514fb1b4f9
commit 5e5e969bb4
2 zmienionych plików z 43 dodań i 0 usunięć

Wyświetl plik

@ -0,0 +1,31 @@
BEGIN:VCALENDAR
CALSCALE:GREGORIAN
METHOD:PUBLISH
VERSION:2.0
PRODID:-//Sixt//RAC//EN
BEGIN:VFREEBUSY
FREEBUSY;FBTYPE=FREE:20190624T063000Z/20190624T163000Z
ORGANIZER;CN=Sixt SE
UID:SIXT_9879691160
DTSTAMP:20190612T104813Z
END:VFREEBUSY
BEGIN:VEVENT
CLASS:PUBLIC
DESCRIPTION:\nVotre véhicule avec le numéro de réservation xxxxxxxxxxx sera à votre disposition le 24.06.2019 à 08:30 heures (heure locale). Retour prévu : Ferney-Voltaire AP de Genève Cointrin Sect(F), le 24.06.2019 à 18:30 heures.\nVous trouverez des informations relatives à la modification ou à l'annulation de votre réservation sous http://www.sixt.fr\n
DTSTART:20190624T063000Z
DTSTAMP:20190612T104813Z
DTEND:20190624T163000Z
LOCATION:Sixt Genève Aéroport secteur France, AP de Genève Cointrin Sect(F), 01210 Ferney-Voltaire, FR
PRIORITY:5
TRANSP:TRANSPARENT
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:Sixt : détails de votre réservation
UID:SIXT_9879691160
BEGIN:VALARM
TRIGGER:-PT30M
ACTION:DISPLAY
DESCRIPTION:\nLe véhicule avec la n° de réservation xxxxxxxxxxx sera à votre disposition entre 24.06.2019 et 08:30 heures (heure locale) à l'agence Genève Aéroport secteur France. Retour prévu : Ferney-Voltaire AP de Genève Cointrin Sect(F), le 24.06.2019 à 18:30 heures.\nTrouver des informations de localisation et modifier / annuler votre réservation ici: http://www.sixt.fr\n
END:VALARM
END:VEVENT
END:VCALENDAR

Wyświetl plik

@ -0,0 +1,12 @@
"""These are tests for Issue #348
see https://github.com/collective/icalendar/issues/348
"""
def test_calendar_can_be_parsed_correctly(calendars):
"""Exception when there's no ':' when parsing value #348
see https://github.com/collective/icalendar/issues/348
"""
freebusy = calendars.issue_348_exception_parsing_value.walk("VFREEBUSY")[0]
assert freebusy["ORGANIZER"]["CN"] == "Sixt SE"