hass-core/tests/components/default_config/test_init.py
Franck Nijhof 2c66ac6203
Remove deprecated Updater integration (#68981)
* Remove deprecated Updater integration

* Remove updater mock
2022-03-31 16:39:57 +02:00

27 lines
721 B
Python

"""Test the default_config init."""
from unittest.mock import patch
import pytest
from homeassistant.setup import async_setup_component
from tests.components.blueprint.conftest import stub_blueprint_populate # noqa: F401
@pytest.fixture(autouse=True)
def mock_ssdp():
"""Mock ssdp."""
with patch("homeassistant.components.ssdp.Scanner.async_scan"):
yield
@pytest.fixture(autouse=True)
def recorder_url_mock():
"""Mock recorder url."""
with patch("homeassistant.components.recorder.DEFAULT_URL", "sqlite://"):
yield
async def test_setup(hass, mock_zeroconf, mock_get_source_ip):
"""Test setup."""
assert await async_setup_component(hass, "default_config", {"foo": "bar"})