Skip to content

Commit d063bc8

Browse files
authored
Fix nam tests opening sockets (home-assistant#155898)
1 parent 5fce08d commit d063bc8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/components/nam/test_config_flow.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ async def test_form_create_entry_with_auth(
103103
assert len(mock_setup_entry.mock_calls) == 1
104104

105105

106+
@pytest.mark.usefixtures("mock_setup_entry")
106107
async def test_reauth_successful(hass: HomeAssistant) -> None:
107108
"""Test starting a reauthentication flow."""
108109
entry = MockConfigEntry(
@@ -375,6 +376,7 @@ async def test_zeroconf_errors(hass: HomeAssistant, error) -> None:
375376
assert result["reason"] == reason
376377

377378

379+
@pytest.mark.usefixtures("mock_setup_entry")
378380
async def test_reconfigure_successful(hass: HomeAssistant) -> None:
379381
"""Test starting a reconfigure flow."""
380382
entry = MockConfigEntry(
@@ -412,6 +414,7 @@ async def test_reconfigure_successful(hass: HomeAssistant) -> None:
412414
}
413415

414416

417+
@pytest.mark.usefixtures("mock_setup_entry")
415418
async def test_reconfigure_not_successful(hass: HomeAssistant) -> None:
416419
"""Test starting a reconfigure flow but no connection found."""
417420
entry = MockConfigEntry(

0 commit comments

Comments
 (0)