Fix nam tests opening sockets (#155898)

This commit is contained in:
Erik Montnemery
2025-11-06 15:02:03 +01:00
committed by GitHub
parent 5fce08de65
commit d063bc87a1
+3
View File
@@ -103,6 +103,7 @@ async def test_form_create_entry_with_auth(
assert len(mock_setup_entry.mock_calls) == 1
@pytest.mark.usefixtures("mock_setup_entry")
async def test_reauth_successful(hass: HomeAssistant) -> None:
"""Test starting a reauthentication flow."""
entry = MockConfigEntry(
@@ -375,6 +376,7 @@ async def test_zeroconf_errors(hass: HomeAssistant, error) -> None:
assert result["reason"] == reason
@pytest.mark.usefixtures("mock_setup_entry")
async def test_reconfigure_successful(hass: HomeAssistant) -> None:
"""Test starting a reconfigure flow."""
entry = MockConfigEntry(
@@ -412,6 +414,7 @@ async def test_reconfigure_successful(hass: HomeAssistant) -> None:
}
@pytest.mark.usefixtures("mock_setup_entry")
async def test_reconfigure_not_successful(hass: HomeAssistant) -> None:
"""Test starting a reconfigure flow but no connection found."""
entry = MockConfigEntry(