Prevent 3rd party lib from opening sockets in sia tests (#56325)
This commit is contained in:
parent
8814c53504
commit
fce7f0873e
1 changed files with 7 additions and 0 deletions
|
@ -209,6 +209,13 @@ async def test_abort_form(hass):
|
|||
assert get_abort["reason"] == "already_configured"
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def mock_sia():
|
||||
"""Mock SIAClient."""
|
||||
with patch("homeassistant.components.sia.hub.SIAClient", autospec=True):
|
||||
yield
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"field, value, error",
|
||||
[
|
||||
|
|
Loading…
Add table
Reference in a new issue