1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Use pytest.mark.freeze_time in bring tests (#156243)

This commit is contained in:
Erik Montnemery
2025-11-10 12:02:57 +01:00
committed by GitHub
parent 053ec2598f
commit 2f80780f75

View File

@@ -3,7 +3,6 @@
from collections.abc import Generator
from unittest.mock import patch
from freezegun.api import freeze_time
import pytest
from syrupy.assertion import SnapshotAssertion
@@ -25,8 +24,8 @@ def event_only() -> Generator[None]:
yield
@pytest.mark.freeze_time("2025-01-01T03:30:00.000Z")
@pytest.mark.usefixtures("mock_bring_client")
@freeze_time("2025-01-01T03:30:00.000Z")
async def test_setup(
hass: HomeAssistant,
bring_config_entry: MockConfigEntry,