Fix tests closing properly (#5203)
This commit is contained in:
1 parent
2b991e2f32
commit
aa1e4c564c
14 files changed
+108
-83
No files matched your search
@@ -572,6 +572,10 @@ class TestSonarrSetup(unittest.TestCase):
|
||||
self.hass = get_test_home_assistant()
|
||||
self.hass.config.time_zone = 'America/Los_Angeles'
|
||||
|
||||
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_diskspace_no_paths(self, req_mock):
|
||||
"""Test getting all disk space."""
|
||||
|
||||
Reference in new issue
Block a user