mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Remove meaningless asserts in some hassio tests (#142583)
This commit is contained in:
parent
762c752918
commit
3ca1f07cc4
@ -663,7 +663,7 @@ async def test_update_addon_with_error(
|
|||||||
|
|
||||||
update_addon.side_effect = SupervisorError
|
update_addon.side_effect = SupervisorError
|
||||||
with pytest.raises(HomeAssistantError, match=r"^Error updating test:"):
|
with pytest.raises(HomeAssistantError, match=r"^Error updating test:"):
|
||||||
assert not await hass.services.async_call(
|
await hass.services.async_call(
|
||||||
"update",
|
"update",
|
||||||
"install",
|
"install",
|
||||||
{"entity_id": "update.test_update"},
|
{"entity_id": "update.test_update"},
|
||||||
@ -711,7 +711,7 @@ async def test_update_addon_with_backup_and_error(
|
|||||||
),
|
),
|
||||||
pytest.raises(HomeAssistantError, match=message),
|
pytest.raises(HomeAssistantError, match=message),
|
||||||
):
|
):
|
||||||
assert not await hass.services.async_call(
|
await hass.services.async_call(
|
||||||
"update",
|
"update",
|
||||||
"install",
|
"install",
|
||||||
{"entity_id": "update.test_update", "backup": True},
|
{"entity_id": "update.test_update", "backup": True},
|
||||||
@ -738,7 +738,7 @@ async def test_update_os_with_error(
|
|||||||
with pytest.raises(
|
with pytest.raises(
|
||||||
HomeAssistantError, match=r"^Error updating Home Assistant Operating System:"
|
HomeAssistantError, match=r"^Error updating Home Assistant Operating System:"
|
||||||
):
|
):
|
||||||
assert not await hass.services.async_call(
|
await hass.services.async_call(
|
||||||
"update",
|
"update",
|
||||||
"install",
|
"install",
|
||||||
{"entity_id": "update.home_assistant_operating_system_update"},
|
{"entity_id": "update.home_assistant_operating_system_update"},
|
||||||
@ -765,7 +765,7 @@ async def test_update_supervisor_with_error(
|
|||||||
with pytest.raises(
|
with pytest.raises(
|
||||||
HomeAssistantError, match=r"^Error updating Home Assistant Supervisor:"
|
HomeAssistantError, match=r"^Error updating Home Assistant Supervisor:"
|
||||||
):
|
):
|
||||||
assert not await hass.services.async_call(
|
await hass.services.async_call(
|
||||||
"update",
|
"update",
|
||||||
"install",
|
"install",
|
||||||
{"entity_id": "update.home_assistant_supervisor_update"},
|
{"entity_id": "update.home_assistant_supervisor_update"},
|
||||||
@ -792,7 +792,7 @@ async def test_update_core_with_error(
|
|||||||
with pytest.raises(
|
with pytest.raises(
|
||||||
HomeAssistantError, match=r"^Error updating Home Assistant Core:"
|
HomeAssistantError, match=r"^Error updating Home Assistant Core:"
|
||||||
):
|
):
|
||||||
assert not await hass.services.async_call(
|
await hass.services.async_call(
|
||||||
"update",
|
"update",
|
||||||
"install",
|
"install",
|
||||||
{"entity_id": "update.home_assistant_core_update"},
|
{"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:"),
|
pytest.raises(HomeAssistantError, match=r"^Error creating backup:"),
|
||||||
):
|
):
|
||||||
assert not await hass.services.async_call(
|
await hass.services.async_call(
|
||||||
"update",
|
"update",
|
||||||
"install",
|
"install",
|
||||||
{"entity_id": "update.home_assistant_core_update", "backup": True},
|
{"entity_id": "update.home_assistant_core_update", "backup": True},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user