Fix zha CI test might fail on changing time (#101134)
This commit is contained in:
parent
581a045617
commit
1546dee36e
1 changed files with 2 additions and 0 deletions
|
@ -6,6 +6,7 @@ from copy import deepcopy
|
|||
from typing import TYPE_CHECKING
|
||||
from unittest.mock import ANY, AsyncMock, MagicMock, call, patch
|
||||
|
||||
from freezegun import freeze_time
|
||||
import pytest
|
||||
import voluptuous as vol
|
||||
import zigpy.backups
|
||||
|
@ -227,6 +228,7 @@ async def test_device_cluster_commands(zha_client) -> None:
|
|||
assert command[TYPE] is not None
|
||||
|
||||
|
||||
@freeze_time("2023-09-23 20:16:00+00:00")
|
||||
async def test_list_devices(zha_client) -> None:
|
||||
"""Test getting ZHA devices."""
|
||||
await zha_client.send_json({ID: 5, TYPE: "zha/devices"})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue