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 5877469
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", [
"/usr/share/zoneinfo/Europe/Brussels",
"/usr/share/zoneinfo/Asia/Pyongyang",
"/usr/share/zoneinfo/America/New_York",
])
def test_chrono_system_clock_roundtrip_time(time1, tz, monkeypatch):
monkeypatch.setenv("TZ", tz)

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

0 comments on commit 5877469

Please sign in to comment.