mirror of
https://github.com/home-assistant/core.git
synced 2025-04-26 02:07:54 +00:00
Fix stale docstrings in onboarding tests (#139696)
This commit is contained in:
parent
ee486c269c
commit
20e48054cf
@ -762,7 +762,7 @@ async def test_onboarding_backup_info(
|
|||||||
hass_client: ClientSessionGenerator,
|
hass_client: ClientSessionGenerator,
|
||||||
snapshot: SnapshotAssertion,
|
snapshot: SnapshotAssertion,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Test returning installation type during onboarding."""
|
"""Test backup info."""
|
||||||
mock_storage(hass_storage, {"done": []})
|
mock_storage(hass_storage, {"done": []})
|
||||||
|
|
||||||
assert await async_setup_component(hass, "onboarding", {})
|
assert await async_setup_component(hass, "onboarding", {})
|
||||||
@ -879,7 +879,7 @@ async def test_onboarding_backup_restore(
|
|||||||
params: dict[str, Any],
|
params: dict[str, Any],
|
||||||
expected_kwargs: dict[str, Any],
|
expected_kwargs: dict[str, Any],
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Test returning installation type during onboarding."""
|
"""Test restore backup."""
|
||||||
mock_storage(hass_storage, {"done": []})
|
mock_storage(hass_storage, {"done": []})
|
||||||
|
|
||||||
assert await async_setup_component(hass, "onboarding", {})
|
assert await async_setup_component(hass, "onboarding", {})
|
||||||
@ -976,7 +976,7 @@ async def test_onboarding_backup_restore_error(
|
|||||||
expected_json: str,
|
expected_json: str,
|
||||||
restore_calls: int,
|
restore_calls: int,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Test returning installation type during onboarding."""
|
"""Test restore backup fails."""
|
||||||
mock_storage(hass_storage, {"done": []})
|
mock_storage(hass_storage, {"done": []})
|
||||||
|
|
||||||
assert await async_setup_component(hass, "onboarding", {})
|
assert await async_setup_component(hass, "onboarding", {})
|
||||||
@ -1020,7 +1020,7 @@ async def test_onboarding_backup_restore_unexpected_error(
|
|||||||
expected_message: str,
|
expected_message: str,
|
||||||
restore_calls: int,
|
restore_calls: int,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Test returning installation type during onboarding."""
|
"""Test restore backup fails."""
|
||||||
mock_storage(hass_storage, {"done": []})
|
mock_storage(hass_storage, {"done": []})
|
||||||
|
|
||||||
assert await async_setup_component(hass, "onboarding", {})
|
assert await async_setup_component(hass, "onboarding", {})
|
||||||
@ -1046,7 +1046,7 @@ async def test_onboarding_backup_upload(
|
|||||||
hass_storage: dict[str, Any],
|
hass_storage: dict[str, Any],
|
||||||
hass_client: ClientSessionGenerator,
|
hass_client: ClientSessionGenerator,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Test returning installation type during onboarding."""
|
"""Test upload backup."""
|
||||||
mock_storage(hass_storage, {"done": []})
|
mock_storage(hass_storage, {"done": []})
|
||||||
|
|
||||||
assert await async_setup_component(hass, "onboarding", {})
|
assert await async_setup_component(hass, "onboarding", {})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user