1
0
mirror of https://github.com/home-assistant/core.git synced 2026-02-14 23:28:42 +00:00

Add snapshot tests to waterfurnace sensors (#162594)

This commit is contained in:
Joost Lekkerkerker
2026-02-11 22:28:41 +01:00
committed by GitHub
parent fd4981f3e2
commit bda3121f98
2 changed files with 1067 additions and 1 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -5,13 +5,28 @@ from unittest.mock import Mock
from freezegun.api import FrozenDateTimeFactory
import pytest
from syrupy.assertion import SnapshotAssertion
from waterfurnace.waterfurnace import WFException
from homeassistant.components.waterfurnace.const import UPDATE_INTERVAL
from homeassistant.const import STATE_UNAVAILABLE
from homeassistant.core import HomeAssistant
from homeassistant.helpers import entity_registry as er
from tests.common import async_fire_time_changed
from tests.common import MockConfigEntry, async_fire_time_changed, snapshot_platform
@pytest.mark.usefixtures("init_integration")
async def test_sensors(
hass: HomeAssistant,
mock_waterfurnace_client: Mock,
snapshot: SnapshotAssertion,
entity_registry: er.EntityRegistry,
mock_config_entry: MockConfigEntry,
) -> None:
"""Test that we create the expected sensors."""
await snapshot_platform(hass, entity_registry, snapshot, mock_config_entry.entry_id)
@pytest.mark.usefixtures("init_integration")