Add diagnostics for IPP (#113205)
This commit is contained in:
parent
c1f5c7c4b7
commit
fe99d80054
3 changed files with 150 additions and 0 deletions
22
tests/components/ipp/test_diagnostics.py
Normal file
22
tests/components/ipp/test_diagnostics.py
Normal file
|
@ -0,0 +1,22 @@
|
|||
"""Tests for the diagnostics data provided by the Internet Printing Protocol (IPP) integration."""
|
||||
|
||||
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
|
||||
|
||||
|
||||
async def test_diagnostics(
|
||||
hass: HomeAssistant,
|
||||
hass_client: ClientSessionGenerator,
|
||||
init_integration: MockConfigEntry,
|
||||
snapshot: SnapshotAssertion,
|
||||
) -> None:
|
||||
"""Test diagnostics for config entry."""
|
||||
assert (
|
||||
await get_diagnostics_for_config_entry(hass, hass_client, init_integration)
|
||||
== snapshot
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue