1
0
mirror of https://github.com/home-assistant/core.git synced 2026-05-08 09:38:58 +01:00

Use pytest.mark.freeze_time in intellifire tests (#156333)

This commit is contained in:
Erik Montnemery
2025-11-11 09:17:58 +01:00
committed by GitHub
parent 1891da46ea
commit d8daca657b
2 changed files with 2 additions and 4 deletions
+1 -2
View File
@@ -2,7 +2,6 @@
from unittest.mock import patch
from freezegun import freeze_time
import pytest
from syrupy.assertion import SnapshotAssertion
@@ -15,7 +14,7 @@ from . import setup_integration
from tests.common import MockConfigEntry, snapshot_platform
@freeze_time("2021-01-01T12:00:00Z")
@pytest.mark.freeze_time("2021-01-01T12:00:00Z")
@pytest.mark.usefixtures("entity_registry_enabled_by_default")
async def test_all_sensor_entities(
hass: HomeAssistant,
+1 -2
View File
@@ -2,7 +2,6 @@
from unittest.mock import AsyncMock, patch
from freezegun import freeze_time
import pytest
from syrupy.assertion import SnapshotAssertion
@@ -15,7 +14,7 @@ from . import setup_integration
from tests.common import MockConfigEntry, snapshot_platform
@freeze_time("2021-01-01T12:00:00Z")
@pytest.mark.freeze_time("2021-01-01T12:00:00Z")
@pytest.mark.usefixtures("entity_registry_enabled_by_default")
async def test_all_sensor_entities(
hass: HomeAssistant,