From b8233326a3517a864b3bd6a7eef7bbfbf843137b Mon Sep 17 00:00:00 2001 From: FL550 Date: Tue, 17 Oct 2023 11:10:36 +0200 Subject: [PATCH] Update tests due to new stations.json --- tests/test_get_station_name.py | 2 +- tests/test_location_tools.py | 4 ++-- tests/test_region.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_get_station_name.py b/tests/test_get_station_name.py index 173e7b0..0417b7b 100644 --- a/tests/test_get_station_name.py +++ b/tests/test_get_station_name.py @@ -10,4 +10,4 @@ def setUp(self): self.dwd_weather.forecast_data = parsed_data def test_get_station_name(self): - self.assertEqual(self.dwd_weather.get_station_name(), "Burbach-Würgendorf") + self.assertEqual(self.dwd_weather.get_station_name(), "Burbach-Wuergendorf") diff --git a/tests/test_location_tools.py b/tests/test_location_tools.py index 328b342..acc4309 100644 --- a/tests/test_location_tools.py +++ b/tests/test_location_tools.py @@ -6,12 +6,12 @@ class LocationToolsTestCase(unittest.TestCase): def test_get_nearest_station_id(self): self.assertEqual( dwdforecast.get_nearest_station_id(50.291472, 8.607336), - "L732", + "L643", "Wrong nearest station", ) self.assertEqual( dwdforecast.get_nearest_station_id(50.357, 8.751), - "L635", + "L543", "Wrong nearest station", ) diff --git a/tests/test_region.py b/tests/test_region.py index 7826718..4f1bcf0 100644 --- a/tests/test_region.py +++ b/tests/test_region.py @@ -5,7 +5,7 @@ class StationTestCase(unittest.TestCase): def test_get_region(self): self.assertEqual( - dwdforecast.get_region("10147"), + dwdforecast.get_region("C316"), "HH", "Wrong region", )