mirror of
https://github.com/home-assistant/core.git
synced 2026-05-08 17:49:37 +01:00
25 lines
719 B
Python
25 lines
719 B
Python
"""Test Litter-Robot diagnostics."""
|
|
|
|
from unittest.mock import MagicMock
|
|
|
|
from syrupy.assertion import SnapshotAssertion
|
|
|
|
from homeassistant.core import HomeAssistant
|
|
|
|
from .conftest import setup_integration
|
|
|
|
from tests.components.diagnostics import get_diagnostics_for_config_entry
|
|
from tests.typing import ClientSessionGenerator
|
|
|
|
|
|
async def test_diagnostics(
|
|
hass: HomeAssistant,
|
|
mock_account: MagicMock,
|
|
hass_client: ClientSessionGenerator,
|
|
snapshot: SnapshotAssertion,
|
|
) -> None:
|
|
"""Test generating diagnostics for a config entry."""
|
|
entry = await setup_integration(hass, mock_account)
|
|
diag = await get_diagnostics_for_config_entry(hass, hass_client, entry)
|
|
assert diag == snapshot
|