Fix zeroconf mock and use it in CI group 1's tests (#55526)
* Fix zeroconf mock and use it in CI group 1's tests * Mock HaAsyncServiceBrowser
This commit is contained in:
parent
e631671832
commit
7dbd0e5274
5 changed files with 31 additions and 30 deletions
|
@ -11,13 +11,6 @@ import homeassistant.util.dt as dt_util
|
|||
from tests.components.light.conftest import mock_light_profiles # noqa: F401
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def mock_zeroconf():
|
||||
"""Mock zeroconf."""
|
||||
with mock.patch("homeassistant.components.zeroconf.models.HaZeroconf") as mock_zc:
|
||||
yield mock_zc.return_value
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def utcnow(request):
|
||||
"""Freeze time at a known point."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue