Fix tests closing properly (#5203)

This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2017-01-07 01:47:25 +01:00
1 parent 2b991e2f32
commit aa1e4c564c
14 files changed
+108 -83

No files matched your search

@@ -129,6 +129,10 @@ class TestWundergroundSetup(unittest.TestCase):
self.hass.config.latitude = self.lat
self.hass.config.longitude = self.lon
def tearDown(self): # pylint: disable=invalid-name
"""Stop everything that was started."""
self.hass.stop()
@unittest.mock.patch('requests.get', side_effect=mocked_requests_get)
def test_setup(self, req_mock):
"""Test that the component is loaded if passed in PWS Id."""