From 35e7b560ae42a68a6fe556854a86b870d8b3133b Mon Sep 17 00:00:00 2001 From: mutantmonkey Date: Sun, 6 Mar 2016 14:55:50 -0800 Subject: [PATCH] fix some more tests --- modules/test/test_calc.py | 2 +- modules/test/test_head.py | 2 +- modules/test/test_weather.py | 13 ++++++------- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/modules/test/test_calc.py b/modules/test/test_calc.py index c154359..8a63cf1 100644 --- a/modules/test/test_calc.py +++ b/modules/test/test_calc.py @@ -6,7 +6,7 @@ author: mutantmonkey import unittest from mock import MagicMock, Mock -from modules.calc import c, wa +from modules.calc import c class TestCalc(unittest.TestCase): diff --git a/modules/test/test_head.py b/modules/test/test_head.py index e255e18..0d936a3 100644 --- a/modules/test/test_head.py +++ b/modules/test/test_head.py @@ -13,7 +13,7 @@ class TestHead(unittest.TestCase): self.phenny = MagicMock() def test_head(self): - input = Mock(group=lambda x: 'http://vtluug.org') + input = Mock(group=lambda x: 'https://vtluug.org') head(self.phenny, input) out = self.phenny.reply.call_args[0][0] diff --git a/modules/test/test_weather.py b/modules/test/test_weather.py index 53d8e8f..ceee563 100644 --- a/modules/test/test_weather.py +++ b/modules/test/test_weather.py @@ -23,18 +23,16 @@ class TestWeather(unittest.TestCase): locations = [ ('92121', check_places("San Diego", "California")), - ('94110', check_places("San Francisco", "California")), + ('94110', check_places("SF", "California")), ('94041', check_places("Mountain View", "California")), - ('27959', check_places("Nags Head", "North Carolina")), + ('27959', check_places("Dare County", "North Carolina")), ('48067', check_places("Royal Oak", "Michigan")), ('23606', check_places("Newport News", "Virginia")), ('23113', check_places("Midlothian", "Virginia")), ('27517', check_places("Chapel Hill", "North Carolina")), - ('46530', check_places("Granger", "Indiana")), - ('15213', check_places("Pittsburgh", "Pennsylvania")), - ('90210', check_places("Beverly Hills", "California")), - ('12144', check_places("Clinton Park", "New York")), - ('33109', check_places("Homestead", "Florida")), + ('15213', check_places("Allegheny County", "Pennsylvania")), + ('90210', check_places("Los Angeles County", "California")), + ('33109', check_places("Miami-Dade County", "Florida")), ('80201', check_places("Denver", "Colorado")), ("Berlin", check_places("Berlin", "Deutschland")), @@ -42,6 +40,7 @@ class TestWeather(unittest.TestCase): ("Vilnius", check_places("Vilnius", "Lietuva")), ('Blacksburg, VA', check_places("Blacksburg", "Virginia")), + ('Granger, IN', check_places("Granger", "Indiana")), ] for loc, validator in locations: