2019-02-08 04:07:15 +00:00
|
|
|
"""Test the default_config init."""
|
|
|
|
from unittest.mock import patch
|
|
|
|
|
|
|
|
import pytest
|
|
|
|
|
2019-12-09 16:42:00 +00:00
|
|
|
from homeassistant.setup import async_setup_component
|
|
|
|
|
2019-02-08 04:07:15 +00:00
|
|
|
|
|
|
|
@pytest.fixture(autouse=True)
|
|
|
|
def recorder_url_mock():
|
|
|
|
"""Mock recorder url."""
|
2019-07-31 19:25:30 +00:00
|
|
|
with patch("homeassistant.components.recorder.DEFAULT_URL", "sqlite://"):
|
2019-02-08 04:07:15 +00:00
|
|
|
yield
|
|
|
|
|
|
|
|
|
|
|
|
async def test_setup(hass):
|
|
|
|
"""Test setup."""
|
2019-07-31 19:25:30 +00:00
|
|
|
assert await async_setup_component(hass, "default_config", {})
|