core/tests/components/webmin/test_diagnostics.py

25 lines
667 B
Python
Raw Normal View History

2024-03-08 19:09:31 +00:00
"""Tests for the diagnostics data provided by the Webmin integration."""
2024-03-08 19:09:31 +00:00
from syrupy.assertion import SnapshotAssertion
from homeassistant.core import HomeAssistant
from .conftest import async_init_integration
from tests.components.diagnostics import get_diagnostics_for_config_entry
from tests.typing import ClientSessionGenerator
async def test_diagnostics(
hass: HomeAssistant,
hass_client: ClientSessionGenerator,
snapshot: SnapshotAssertion,
) -> None:
"""Test diagnostics."""
assert (
await get_diagnostics_for_config_entry(
hass, hass_client, await async_init_integration(hass)
)
== snapshot
)