Skip to content

Commit 6210117

Browse files
committed
Try
1 parent 9b81df5 commit 6210117

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_usb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ async def fake_get_missing_energy_logs(address: int) -> None:
939939
)
940940
await stick.disconnect()
941941

942-
@freeze_time(dt.now())
942+
@freeze_time("2025-04-04 00:00:00", tz_offset=-2)
943943
def test_pulse_collection_consumption(
944944
self, monkeypatch: pytest.MonkeyPatch
945945
) -> None:
@@ -948,7 +948,7 @@ def test_pulse_collection_consumption(
948948

949949
# fixed_timestamp_utc = dt.now(UTC)
950950
# fixed_this_hour = fixed_timestamp_utc.replace(minute=0, second=0, microsecond=0)
951-
fixed_this_hour = freeze_time("2025-04-04 00:00:00")
951+
fixed_this_hour = dt.now(UTC)
952952

953953
# Test consumption logs
954954
tst_consumption = pw_energy_pulses.PulseCollection(mac="0098765432101234")

0 commit comments

Comments
 (0)