mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-25 20:29:23 +01:00
Geography: Replace Canada/Newfoundland with America/St_Johns in tests
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1040997
This commit is contained in:
parent
71ae97ef5e
commit
5357f50bed
@ -79,11 +79,11 @@ class GeographyTimezoneTestCase(PluginTestCase):
|
|||||||
"timezone New York", r"America/New_York \(currently UTC-[45]\)"
|
"timezone New York", r"America/New_York \(currently UTC-[45]\)"
|
||||||
)
|
)
|
||||||
|
|
||||||
tz = pytz.timezone("Canada/Newfoundland")
|
tz = pytz.timezone("America/St_Johns")
|
||||||
with patch.object(wikidata, "timezone_from_uri", return_value=tz):
|
with patch.object(wikidata, "timezone_from_uri", return_value=tz):
|
||||||
self.assertRegexp(
|
self.assertRegexp(
|
||||||
"timezone Newfoundland",
|
"timezone Newfoundland",
|
||||||
r"Canada/Newfoundland \(currently UTC-[23]:30\)",
|
r"America/St_Johns \(currently UTC-[23]:30\)",
|
||||||
)
|
)
|
||||||
|
|
||||||
tz = pytz.timezone("Asia/Kolkata")
|
tz = pytz.timezone("Asia/Kolkata")
|
||||||
@ -107,11 +107,11 @@ class GeographyTimezoneTestCase(PluginTestCase):
|
|||||||
"timezone New York", r"America/New_York \(currently UTC-[45]\)"
|
"timezone New York", r"America/New_York \(currently UTC-[45]\)"
|
||||||
)
|
)
|
||||||
|
|
||||||
tz = zoneinfo.ZoneInfo("Canada/Newfoundland")
|
tz = zoneinfo.ZoneInfo("America/St_Johns")
|
||||||
with patch.object(wikidata, "timezone_from_uri", return_value=tz):
|
with patch.object(wikidata, "timezone_from_uri", return_value=tz):
|
||||||
self.assertRegexp(
|
self.assertRegexp(
|
||||||
"timezone Newfoundland",
|
"timezone Newfoundland",
|
||||||
r"Canada/Newfoundland \(currently UTC-[23]:30\)",
|
r"America/St_Johns \(currently UTC-[23]:30\)",
|
||||||
)
|
)
|
||||||
|
|
||||||
tz = zoneinfo.ZoneInfo("Asia/Kolkata")
|
tz = zoneinfo.ZoneInfo("Asia/Kolkata")
|
||||||
|
Loading…
Reference in New Issue
Block a user