Fix tests closing properly (#5203)

This commit is contained in:
Paulus Schoutsen
2017-01-07 01:47:25 +01:00
committed by GitHub
parent 2b991e2f32
commit aa1e4c564c
14 changed files with 108 additions and 83 deletions
@@ -31,6 +31,10 @@ class TestSleepIQBinarySensorSetup(unittest.TestCase):
'password': self.password,
}
def tearDown(self): # pylint: disable=invalid-name
"""Stop everything that was started."""
self.hass.stop()
@requests_mock.Mocker()
def test_setup(self, mock):
"""Test for successfully setting up the SleepIQ platform."""