hass-core/tests/components/config/test_init.py
Paulus Schoutsen 44311193ef Add config component and hassbian example panel (#5868)
* Add hassbian panel

* Rename to generic config panel

* Allow loading hassbian as test

* Add tests

* Update frontend

* Lint

* Lint
2017-02-11 17:29:05 -08:00

18 lines
451 B
Python

"""Test config init."""
import pytest
from homeassistant.bootstrap import async_setup_component
from tests.common import mock_http_component
@pytest.fixture(autouse=True)
def stub_http(hass):
"""Stub the HTTP component."""
mock_http_component(hass)
def test_config_setup(hass, loop):
"""Test it sets up hassbian."""
loop.run_until_complete(async_setup_component(hass, 'config', {}))
assert 'config' in hass.config.components