mirror of
https://github.com/home-assistant/core.git
synced 2025-04-28 03:07:50 +00:00
Freeze time in aemet diagnostics test (#111308)
This commit is contained in:
parent
93a76ab519
commit
076ae22fdd
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
|
import pytest
|
||||||
from syrupy import SnapshotAssertion
|
from syrupy import SnapshotAssertion
|
||||||
|
|
||||||
from homeassistant.components.aemet.const import DOMAIN
|
from homeassistant.components.aemet.const import DOMAIN
|
||||||
@ -13,6 +14,7 @@ from tests.components.diagnostics import get_diagnostics_for_config_entry
|
|||||||
from tests.typing import ClientSessionGenerator
|
from tests.typing import ClientSessionGenerator
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.freeze_time("2024-02-23T18:00:00+00:00")
|
||||||
async def test_config_entry_diagnostics(
|
async def test_config_entry_diagnostics(
|
||||||
hass: HomeAssistant,
|
hass: HomeAssistant,
|
||||||
hass_client: ClientSessionGenerator,
|
hass_client: ClientSessionGenerator,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user