From c8f4da267adbbbe8e9f9c0d3c83f50e49e24f3ba Mon Sep 17 00:00:00 2001 From: Paul Walko Date: Sun, 12 Feb 2017 19:06:17 +0000 Subject: [PATCH] remove Midlothian, Virginia weather test; Improve duck_api readibility --- modules/search.py | 3 ++- modules/test/test_weather.py | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/search.py b/modules/search.py index c031851..22d6188 100644 --- a/modules/search.py +++ b/modules/search.py @@ -148,7 +148,8 @@ def duck(phenny, input): query = input.group(2) if not query: return phenny.reply('.ddg what?') uri = duck_api(query) - if not uri: uri = duck_search(query) + if not uri: + uri = duck_search(query) if uri: phenny.reply(uri) if not hasattr(phenny.bot, 'last_seen_uri'): diff --git a/modules/test/test_weather.py b/modules/test/test_weather.py index 3db9d05..f49b3ab 100644 --- a/modules/test/test_weather.py +++ b/modules/test/test_weather.py @@ -28,7 +28,6 @@ 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("Nodstown", "Munster")), ('27517', check_places("Chapel Hill", "North Carolina")), ('15213', check_places("Allegheny County", "Pennsylvania")), ('90210', check_places("Los Angeles County", "California")),