mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 01:07:10 +00:00
Added test for Introduction component
This test may seem useless, but it is good to ensure that default components don’t ever crash HASS.
This commit is contained in:
parent
5fdbe5fd9a
commit
a230d00ed0
28
tests/components/test_introduction.py
Normal file
28
tests/components/test_introduction.py
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
"""
|
||||||
|
tests.components.introduction
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
Test introduction.
|
||||||
|
|
||||||
|
This test is primarily to ensure that default components don't crash HASS.
|
||||||
|
"""
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
import homeassistant.core as ha
|
||||||
|
from homeassistant.components import introduction
|
||||||
|
|
||||||
|
|
||||||
|
class TestIntroduction(unittest.TestCase):
|
||||||
|
""" Test Introduction. """
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
self.hass = ha.HomeAssistant()
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
""" Stop down stuff we started. """
|
||||||
|
self.hass.stop()
|
||||||
|
|
||||||
|
def test_setup(self):
|
||||||
|
""" Test Introduction setup """
|
||||||
|
self.assertTrue(introduction.setup(self.hass, {}))
|
Loading…
x
Reference in New Issue
Block a user