+
    ¾¾jù	  ã                   ó&   € R t ^ RIt ! R R4      tR# )aj  Test for Issue #321 - AssertionError with VTIMEZONE containing only DAYLIGHT.

When a VTIMEZONE component contains only a DAYLIGHT subcomponent (no STANDARD),
converting it to a pytz timezone with lookup_tzid=False would fail with an
AssertionError.

The issue occurs because the code assumes it can find a non-DST (STANDARD)
transition to calculate the dst_offset, but when only DAYLIGHT exists, this
assumption fails.

Original issue: https://github.com/collective/icalendar/issues/321
Original PR with test case: https://github.com/collective/icalendar/pull/379
Test case by: @niccokunzmann
Fix by: @SashankBhamidi
Nc                   óT   a € ] tR t^t o Rt]P                  R 4       tR tR t	Rt
V tR# )ÚTestIssue321DstOffsetz7Test VTIMEZONE conversion with only DAYLIGHT component.c                ó   € VP                   # )z6Load calendar with VTIMEZONE containing only DAYLIGHT.)Ú(issue_321_assert_dst_offset_is_not_false)ÚselfÚ	calendarss   &&Úh/home/ralf/ical-fahrzeuge/venv/lib/python3.14/site-packages/icalendar/tests/test_issue_321_dst_offset.pyÚcalendar_with_only_daylightÚ1TestIssue321DstOffset.calendar_with_only_daylight   s   € ð ×AÑAÐAó    c                ó¸   € \        VP                  4       4      ^,          pVP                  R8X  g   Q hVR,          R8X  g   Q hVP                  4       pVf   Q hR# )zêTest that VTIMEZONE with only DAYLIGHT can be converted to timezone.

This tests the specific case from issue #321 where a calendar generated
by khal had a VTIMEZONE with only DAYLIGHT, causing an AssertionError
when calling to_tz().
Ú	VTIMEZONEÚTZIDúEurope/BerlinN)ÚlistÚwalkÚnameÚto_tz)r   r	   ÚtimezoneÚtzs   &&  r   Ú:test_vtimezone_with_only_daylight_does_not_raise_assertionÚPTestIssue321DstOffset.test_vtimezone_with_only_daylight_does_not_raise_assertion   sZ   € ô Ð3×8Ñ8Ó:Ó;¸AÕ>ˆØ�}‰} Ô+Ð+Ð+Ø˜Õ ?Ô2Ð2Ð2ð �^‰^ÓˆØŠ~ÐŠ~r   c                óè   € \         P                  ! RRR7       ^ RIHp V! 4       p\	        VP                  4       4      ^,          pVP                  VRR7      pVf   Q hVP                  R8X  g   Q hR# )	züTest forced timezone creation with lookup_tzid=False.

This is a more stringent test that forces timezone creation from the
VTIMEZONE definition rather than looking up an existing timezone.
This was the specific case that triggered the AssertionError.
ÚpytzzThis test requires pytz)Úreason)ÚPYTZF)ÚtzpÚlookup_tzidNr   )ÚpytestÚimportorskipÚicalendar.timezone.pytzr   r   r   r   Úzone)r   r	   r   Úpytz_providerr   r   s   &&    r   Ú1test_vtimezone_with_only_daylight_forced_creationÚGTestIssue321DstOffset.test_vtimezone_with_only_daylight_forced_creation.   sh   € ô 	×Ò˜FÐ+DÕEÝ0á›ˆäÐ3×8Ñ8Ó:Ó;¸AÕ>ˆð �^‰^ ¸5ˆ^ÓAˆØŠ~Ðˆ~Ø�w‰w˜/Ô)Ð)Ò)r   © N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   Úfixturer	   r   r#   Ú__static_attributes__Ú__classdictcell__)Ú__classdict__s   @r   r   r      s/   ø‡ € ÙAà‡^�^ñBó ðBò÷$*ð *r   r   )r*   r   r   r%   r   r   Ú<module>r/      s   ðñó  ÷.*ó .*r   