Mock out zeroconf in homekit_controller tests (#56307)

This commit is contained in:
Erik Montnemery
2021-09-16 23:29:41 +02:00
committed by GitHub
parent 70eb519f76
commit 8341ae12d3

View File

@@ -27,3 +27,8 @@ def controller(hass):
instance = FakeController()
with unittest.mock.patch("aiohomekit.Controller", return_value=instance):
yield instance
@pytest.fixture(autouse=True)
def homekit_mock_zeroconf(mock_zeroconf):
"""Mock zeroconf in all homekit tests."""