Skip to content

Commit

Permalink
Update tests due to new stations.json
Browse files Browse the repository at this point in the history
  • Loading branch information
FL550 committed Oct 17, 2023
1 parent eb79091 commit b823332
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/test_get_station_name.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
4 changes: 2 additions & 2 deletions tests/test_location_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)

Expand Down
2 changes: 1 addition & 1 deletion tests/test_region.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)
Expand Down

0 comments on commit b823332

Please sign in to comment.