core/tests/components/twentemilieu/test_diagnostics.py

22 lines
666 B
Python
Raw Normal View History

"""Tests for the diagnostics data provided by the TwenteMilieu integration."""
2023-02-23 15:26:17 +00:00
from syrupy.assertion import SnapshotAssertion
from homeassistant.core import HomeAssistant
from tests.common import MockConfigEntry
from tests.components.diagnostics import get_diagnostics_for_config_entry
from tests.typing import ClientSessionGenerator
async def test_diagnostics(
hass: HomeAssistant,
hass_client: ClientSessionGenerator,
init_integration: MockConfigEntry,
2023-02-23 15:26:17 +00:00
snapshot: SnapshotAssertion,
) -> None:
"""Test diagnostics."""
2023-02-23 15:26:17 +00:00
assert (
await get_diagnostics_for_config_entry(hass, hass_client, init_integration)
== snapshot
)