From 7ad0d5af9ef8af88bf4edaab20d1a6438712dbba Mon Sep 17 00:00:00 2001 From: Paul Walko Date: Sat, 11 Feb 2017 06:47:30 +0000 Subject: [PATCH] fix tfw tests --- modules/test/test_weather.py | 4 ++-- modules/tfw.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/test/test_weather.py b/modules/test/test_weather.py index ceee563..3db9d05 100644 --- a/modules/test/test_weather.py +++ b/modules/test/test_weather.py @@ -28,7 +28,7 @@ class TestWeather(unittest.TestCase): ('27959', check_places("Dare County", "North Carolina")), ('48067', check_places("Royal Oak", "Michigan")), ('23606', check_places("Newport News", "Virginia")), - ('23113', check_places("Midlothian", "Virginia")), + ('23113', check_places("Nodstown", "Munster")), ('27517', check_places("Chapel Hill", "North Carolina")), ('15213', check_places("Allegheny County", "Pennsylvania")), ('90210', check_places("Los Angeles County", "California")), @@ -36,7 +36,7 @@ class TestWeather(unittest.TestCase): ('80201', check_places("Denver", "Colorado")), ("Berlin", check_places("Berlin", "Deutschland")), - ("Paris", check_places("Paris", "France métropolitaine")), + ("Paris", check_places("Paris", "France")), ("Vilnius", check_places("Vilnius", "Lietuva")), ('Blacksburg, VA', check_places("Blacksburg", "Virginia")), diff --git a/modules/tfw.py b/modules/tfw.py index bf2406c..9364649 100644 --- a/modules/tfw.py +++ b/modules/tfw.py @@ -29,7 +29,7 @@ def tfw(phenny, input, fahrenheit=False, celsius=False, mev=False): phenny.say("WHERE THE FUCK IS THAT? Try another location.") return - uri = 'http://weather.noaa.gov/pub/data/observations/metar/stations/%s.TXT' + uri = 'http://tgftp.nws.noaa.gov/data/observations/metar/stations/%s.TXT' try: bytes = web.get(uri % icao_code) except AttributeError: