forked from home-assistant/core
Prevent 3rd party lib from opening sockets in sia tests (#56325)
This commit is contained in:
@@ -209,6 +209,13 @@ async def test_abort_form(hass):
|
|||||||
assert get_abort["reason"] == "already_configured"
|
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(
|
@pytest.mark.parametrize(
|
||||||
"field, value, error",
|
"field, value, error",
|
||||||
[
|
[
|
||||||
|
Reference in New Issue
Block a user