Skip to content

Commit

Permalink
tests: check more timezones
Browse files Browse the repository at this point in the history
  • Loading branch information
henryiii committed Aug 27, 2020
1 parent 4cca280 commit 8a301ec
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/test_chrono.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,14 @@ def test_chrono_system_clock_roundtrip_date():
datetime.time(5, 59, 59, 0),
datetime.time(5, 59, 59, 1),
])
def test_chrono_system_clock_roundtrip_time(time1):
@pytest.mark.parametrize("tz", [
"Europe/Brussels",
"Asia/Pyongyang",
"America/New_York",
])
def test_chrono_system_clock_roundtrip_time(time1, tz, monkeypatch):
monkeypatch.setenv("TZ", "/usr/share/zoneinfo/{}".format(tz))

# Roundtrip the time
datetime2 = m.test_chrono2(time1)
date2 = datetime2.date()
Expand Down

0 comments on commit 8a301ec

Please sign in to comment.