mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 18:27:09 +00:00
Prevent 3rd party lib from opening sockets in sia tests (#56325)
This commit is contained in:
parent
8814c53504
commit
fce7f0873e
@ -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",
|
||||||
[
|
[
|
||||||
|
Loading…
x
Reference in New Issue
Block a user