mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 04:50:05 +00:00
Use TestCase.addCleanup (#36560)
This commit is contained in:
@@ -29,8 +29,9 @@ class TestInfluxDB(unittest.TestCase):
|
||||
self.hass = get_test_home_assistant()
|
||||
self.handler_method = None
|
||||
self.hass.bus.listen = mock.Mock()
|
||||
self.addCleanup(self.tear_down_cleanup)
|
||||
|
||||
def tearDown(self):
|
||||
def tear_down_cleanup(self):
|
||||
"""Clear data."""
|
||||
self.hass.stop()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user