From d063bc87a1af754de35b033121810f7ad1ea5b30 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Thu, 6 Nov 2025 15:02:03 +0100 Subject: [PATCH] Fix nam tests opening sockets (#155898) --- tests/components/nam/test_config_flow.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/components/nam/test_config_flow.py b/tests/components/nam/test_config_flow.py index e3c2397de770..7c44f6c9bdec 100644 --- a/tests/components/nam/test_config_flow.py +++ b/tests/components/nam/test_config_flow.py @@ -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(