Fix zha CI test might fail on changing time (#101134)

This commit is contained in:
Jan Bouwhuis 2023-09-29 21:36:54 +02:00 committed by GitHub
parent 581a045617
commit 1546dee36e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"})