mirror of
https://github.com/home-assistant/core.git
synced 2026-09-24 23:41:48 -05:00
Fix nam tests opening sockets (#155898)
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user