Add 100% coverage to coordinator in Fritz (#180647)

This commit is contained in:
Simone Chemelli
2026-08-29 18:37:36 +02:00
committed by GitHub
parent b4826e7f89
commit 0313d4971a
@@ -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,