Nicco Kunzmann 2024-06-10 12:38:25 +01:00
rodzic 4eb94f5b88
commit 83eb74b49d
1 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -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())