Use setup_component in tests v1 (#3507)
* update unittests like #3414 * setup_component - splunk * setup_component - statsd * fix statsd & splunk unittest config values * component_setup - device_sun_light_trigger * setup_component - introduction * component_setup - persistent_notification * setup_component - logentries, mqtt eventstream * fix unittest logentries
This commit is contained in:
1 parent
0c0feda834
commit
bbfd86dec3
16 files changed
+62
-46
No files matched your search
@@ -1,4 +1,5 @@
|
||||
"""The tests for the persistent notification component."""
|
||||
from homeassistant.bootstrap import setup_component
|
||||
import homeassistant.components.persistent_notification as pn
|
||||
|
||||
from tests.common import get_test_home_assistant
|
||||
@@ -10,7 +11,7 @@ class TestPersistentNotification:
|
||||
def setup_method(self, method):
|
||||
"""Setup things to be run when tests are started."""
|
||||
self.hass = get_test_home_assistant()
|
||||
pn.setup(self.hass, {})
|
||||
setup_component(self.hass, pn.DOMAIN, {})
|
||||
|
||||
def teardown_method(self, method):
|
||||
"""Stop everything that was started."""
|
||||
|
||||
Reference in new issue
Block a user