Mock out I/O in the default_config test (#37897)
This test never passed locally because of the I/O.
This commit is contained in:
parent
72309a0dfc
commit
1582e4347d
1 changed files with 21 additions and 0 deletions
|
@ -6,6 +6,27 @@ from homeassistant.setup import async_setup_component
|
|||
from tests.async_mock import patch
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def mock_zeroconf():
|
||||
"""Mock zeroconf."""
|
||||
with patch("homeassistant.components.zeroconf.HaZeroconf"):
|
||||
yield
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def mock_ssdp():
|
||||
"""Mock ssdp."""
|
||||
with patch("homeassistant.components.ssdp.Scanner.async_scan"):
|
||||
yield
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def mock_updater():
|
||||
"""Mock updater."""
|
||||
with patch("homeassistant.components.updater.get_newest_version"):
|
||||
yield
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def recorder_url_mock():
|
||||
"""Mock recorder url."""
|
||||
|
|
Loading…
Add table
Reference in a new issue