Files
syn-chat-bot/.venv/lib/python3.9/site-packages/icalendar/tests/prop/test_vWeekday.py
Hyungi Ahn c2257d3a86 fix: 포트 충돌 회피 — note_bridge 8098, intent_service 8099
Jellyfin(8096), OrbStack(8097) 포트 충돌으로 변경.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-19 13:53:55 +09:00

28 lines
622 B
Python

import pytest
from icalendar.prop import vWeekday
def test_simple():
weekday = vWeekday("SU")
assert weekday.to_ical() == b"SU"
assert weekday.weekday == "SU"
assert weekday.relative is None
def test_relative():
weekday = vWeekday("-1MO")
assert weekday.to_ical() == b"-1MO"
assert weekday.weekday == "MO"
assert weekday.relative == -1
def test_roundtrip():
assert vWeekday.from_ical(vWeekday("+2TH").to_ical()) == "+2TH"
def test_error():
"""Error: Expected weekday abbrevation, got: \"-100MO\" """
with pytest.raises(ValueError):
vWeekday.from_ical("-100MO")