kopia lustrzana https://github.com/collective/icalendar
reproducing the error if no : is given
see https://github.com/collective/icalendar/issues/348issue_348
rodzic
514fb1b4f9
commit
5e5e969bb4
|
@ -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
|
|
@ -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"
|
Ładowanie…
Reference in New Issue