mirror of
https://github.com/home-assistant/core.git
synced 2026-09-25 07:51:46 -05:00
Add 100% coverage to coordinator in Fritz (#180647)
This commit is contained in:
@@ -527,6 +527,17 @@ async def test_trigger_methods(
|
||||
fritz_tools.fritz_call.hangup.assert_called_once()
|
||||
|
||||
|
||||
async def test_trigger_reconnect_reraises_unexpected_error(
|
||||
fritz_tools,
|
||||
) -> None:
|
||||
"""Test async_trigger_reconnect re-raises errors other than DisconnectInProgress."""
|
||||
fritz_tools.connection.call_action = MagicMock(
|
||||
side_effect=FritzConnectionException("some other error")
|
||||
)
|
||||
with pytest.raises(FritzConnectionException):
|
||||
await fritz_tools.async_trigger_reconnect()
|
||||
|
||||
|
||||
async def test_avmwrapper_service_call_branches(
|
||||
hass: HomeAssistant,
|
||||
caplog: pytest.LogCaptureFixture,
|
||||
|
||||
Reference in New Issue
Block a user