mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 15:17:35 +00:00
Fix samsung mocks (#66765)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
d7619d2302
commit
8bf19655f1
@ -1246,8 +1246,9 @@ async def test_form_reauth_websocket(hass: HomeAssistant) -> None:
|
|||||||
assert entry.state == config_entries.ConfigEntryState.LOADED
|
assert entry.state == config_entries.ConfigEntryState.LOADED
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.usefixtures("remotews")
|
async def test_form_reauth_websocket_cannot_connect(
|
||||||
async def test_form_reauth_websocket_cannot_connect(hass: HomeAssistant) -> None:
|
hass: HomeAssistant, remotews: Mock
|
||||||
|
) -> None:
|
||||||
"""Test reauthenticate websocket when we cannot connect on the first attempt."""
|
"""Test reauthenticate websocket when we cannot connect on the first attempt."""
|
||||||
entry = MockConfigEntry(domain=DOMAIN, data=MOCK_WS_ENTRY)
|
entry = MockConfigEntry(domain=DOMAIN, data=MOCK_WS_ENTRY)
|
||||||
entry.add_to_hass(hass)
|
entry.add_to_hass(hass)
|
||||||
|
@ -296,9 +296,8 @@ async def test_update_access_denied(hass: HomeAssistant, mock_now: datetime) ->
|
|||||||
assert state.state == STATE_UNAVAILABLE
|
assert state.state == STATE_UNAVAILABLE
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.usefixtures("remotews")
|
|
||||||
async def test_update_connection_failure(
|
async def test_update_connection_failure(
|
||||||
hass: HomeAssistant, mock_now: datetime
|
hass: HomeAssistant, mock_now: datetime, remotews: Mock
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Testing update tv connection failure exception."""
|
"""Testing update tv connection failure exception."""
|
||||||
with patch(
|
with patch(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user