Tests should all use test HA
This commit is contained in:
1 parent
bade0e0d71
commit
09ab3e95c0
52 files changed
+170
-125
No files matched your search
@@ -14,7 +14,7 @@ from homeassistant.const import (
|
||||
import homeassistant.util.dt as dt_util
|
||||
from homeassistant.components import logbook
|
||||
|
||||
from tests.common import mock_http_component
|
||||
from tests.common import mock_http_component, get_test_home_assistant
|
||||
|
||||
|
||||
class TestComponentHistory(unittest.TestCase):
|
||||
@@ -22,7 +22,7 @@ class TestComponentHistory(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
""" Test setup method. """
|
||||
self.hass = ha.HomeAssistant()
|
||||
self.hass = get_test_home_assistant()
|
||||
mock_http_component(self.hass)
|
||||
self.assertTrue(logbook.setup(self.hass, {}))
|
||||
|
||||
|
||||
Reference in new issue
Block a user