kopia lustrzana https://github.com/collective/icalendar
Add test to map to olson
address comment https://github.com/collective/icalendar/pull/623#discussion_r1632220685pull/623/head
rodzic
4eb94f5b88
commit
83eb74b49d
|
@ -6,9 +6,11 @@ from datetime import datetime
|
|||
|
||||
|
||||
def test_windows_timezone(tzp):
|
||||
"""test that an example"""
|
||||
dt = vDatetime.from_ical('20170507T181920', 'Eastern Standard Time'),
|
||||
"""Test that the timezone is mapped correctly to olson."""
|
||||
dt = vDatetime.from_ical('20170507T181920', 'Eastern Standard Time')
|
||||
expected = tzp.localize(datetime(2017, 5, 7, 18, 19, 20), 'America/New_York')
|
||||
assert dt.tzinfo == dt.tzinfo
|
||||
assert dt == expected
|
||||
|
||||
|
||||
@pytest.mark.parametrize("olson_id", WINDOWS_TO_OLSON.values())
|
||||
|
|
Ładowanie…
Reference in New Issue