2023-12-23 11:20:15 +00:00
|
|
|
"""Tests for the Tankerkoening integration."""
|
|
|
|
from __future__ import annotations
|
|
|
|
|
2024-01-31 13:57:08 +00:00
|
|
|
import pytest
|
2023-12-23 11:20:15 +00:00
|
|
|
from syrupy 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
|
|
|
|
|
|
|
|
|
2024-01-31 13:57:08 +00:00
|
|
|
@pytest.mark.usefixtures("setup_integration")
|
2023-12-23 11:20:15 +00:00
|
|
|
async def test_entry_diagnostics(
|
|
|
|
hass: HomeAssistant,
|
|
|
|
hass_client: ClientSessionGenerator,
|
2024-01-31 13:57:08 +00:00
|
|
|
config_entry: MockConfigEntry,
|
2023-12-23 11:20:15 +00:00
|
|
|
snapshot: SnapshotAssertion,
|
|
|
|
) -> None:
|
|
|
|
"""Test config entry diagnostics."""
|
2024-01-31 13:57:08 +00:00
|
|
|
result = await get_diagnostics_for_config_entry(hass, hass_client, config_entry)
|
2023-12-23 11:20:15 +00:00
|
|
|
assert result == snapshot
|