Mock out zeroconf in homekit_controller tests (#56307)
This commit is contained in:
parent
70eb519f76
commit
8341ae12d3
1 changed files with 5 additions and 0 deletions
|
@ -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."""
|
||||
|
|
Loading…
Add table
Reference in a new issue