mirror of
https://github.com/home-assistant/core.git
synced 2025-07-30 16:57:19 +00:00
Fix LetPot reauthentication flow tests setting up config entry (#136589)
Fix LetPot reauth tests setting up config entry
This commit is contained in:
parent
647a7ae8e0
commit
db2fed2034
@ -149,7 +149,7 @@ async def test_flow_duplicate(
|
|||||||
|
|
||||||
|
|
||||||
async def test_reauth_flow(
|
async def test_reauth_flow(
|
||||||
hass: HomeAssistant, mock_config_entry: MockConfigEntry
|
hass: HomeAssistant, mock_setup_entry: AsyncMock, mock_config_entry: MockConfigEntry
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Test reauth flow with success."""
|
"""Test reauth flow with success."""
|
||||||
mock_config_entry.add_to_hass(hass)
|
mock_config_entry.add_to_hass(hass)
|
||||||
@ -196,6 +196,7 @@ async def test_reauth_flow(
|
|||||||
)
|
)
|
||||||
async def test_reauth_exceptions(
|
async def test_reauth_exceptions(
|
||||||
hass: HomeAssistant,
|
hass: HomeAssistant,
|
||||||
|
mock_setup_entry: AsyncMock,
|
||||||
mock_config_entry: MockConfigEntry,
|
mock_config_entry: MockConfigEntry,
|
||||||
exception: Exception,
|
exception: Exception,
|
||||||
error: str,
|
error: str,
|
||||||
@ -249,7 +250,7 @@ async def test_reauth_exceptions(
|
|||||||
|
|
||||||
|
|
||||||
async def test_reauth_different_user_id_new(
|
async def test_reauth_different_user_id_new(
|
||||||
hass: HomeAssistant, mock_config_entry: MockConfigEntry
|
hass: HomeAssistant, mock_setup_entry: AsyncMock, mock_config_entry: MockConfigEntry
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Test reauth flow with different, new user ID updating the existing entry."""
|
"""Test reauth flow with different, new user ID updating the existing entry."""
|
||||||
mock_config_entry.add_to_hass(hass)
|
mock_config_entry.add_to_hass(hass)
|
||||||
@ -288,7 +289,7 @@ async def test_reauth_different_user_id_new(
|
|||||||
|
|
||||||
|
|
||||||
async def test_reauth_different_user_id_existing(
|
async def test_reauth_different_user_id_existing(
|
||||||
hass: HomeAssistant, mock_config_entry: MockConfigEntry
|
hass: HomeAssistant, mock_setup_entry: AsyncMock, mock_config_entry: MockConfigEntry
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Test reauth flow with different, existing user ID aborting."""
|
"""Test reauth flow with different, existing user ID aborting."""
|
||||||
mock_config_entry.add_to_hass(hass)
|
mock_config_entry.add_to_hass(hass)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user