Remove meaningless asserts in some hassio tests (#142583)

This commit is contained in:
Erik Montnemery 2025-04-09 12:13:56 +02:00 committed by GitHub
parent 762c752918
commit 3ca1f07cc4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -663,7 +663,7 @@ async def test_update_addon_with_error(
update_addon.side_effect = SupervisorError
with pytest.raises(HomeAssistantError, match=r"^Error updating test:"):
assert not await hass.services.async_call(
await hass.services.async_call(
"update",
"install",
{"entity_id": "update.test_update"},
@ -711,7 +711,7 @@ async def test_update_addon_with_backup_and_error(
),
pytest.raises(HomeAssistantError, match=message),
):
assert not await hass.services.async_call(
await hass.services.async_call(
"update",
"install",
{"entity_id": "update.test_update", "backup": True},
@ -738,7 +738,7 @@ async def test_update_os_with_error(
with pytest.raises(
HomeAssistantError, match=r"^Error updating Home Assistant Operating System:"
):
assert not await hass.services.async_call(
await hass.services.async_call(
"update",
"install",
{"entity_id": "update.home_assistant_operating_system_update"},
@ -765,7 +765,7 @@ async def test_update_supervisor_with_error(
with pytest.raises(
HomeAssistantError, match=r"^Error updating Home Assistant Supervisor:"
):
assert not await hass.services.async_call(
await hass.services.async_call(
"update",
"install",
{"entity_id": "update.home_assistant_supervisor_update"},
@ -792,7 +792,7 @@ async def test_update_core_with_error(
with pytest.raises(
HomeAssistantError, match=r"^Error updating Home Assistant Core:"
):
assert not await hass.services.async_call(
await hass.services.async_call(
"update",
"install",
{"entity_id": "update.home_assistant_core_update"},
@ -826,7 +826,7 @@ async def test_update_core_with_backup_and_error(
),
pytest.raises(HomeAssistantError, match=r"^Error creating backup:"),
):
assert not await hass.services.async_call(
await hass.services.async_call(
"update",
"install",
{"entity_id": "update.home_assistant_core_update", "backup": True},