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:
Valentin Lorentz 2023-08-10 08:02:50 +02:00
parent 71ae97ef5e
commit 5357f50bed

View File

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