We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 593aa11 commit 730a430Copy full SHA for 730a430
tests/test_usb.py
@@ -939,7 +939,7 @@ async def fake_get_missing_energy_logs(address: int) -> None:
939
)
940
await stick.disconnect()
941
942
- @freeze_time("2025-04-04 00:00:00", tz_offset=0)
+ @freeze_time("2025-04-04 00:00:00")
943
def test_pulse_collection_consumption(
944
self, monkeypatch: pytest.MonkeyPatch
945
) -> None:
@@ -948,7 +948,7 @@ def test_pulse_collection_consumption(
948
949
# fixed_timestamp_utc = dt.now(UTC)
950
# fixed_this_hour = fixed_timestamp_utc.replace(minute=0, second=0, microsecond=0)
951
- fixed_this_hour = dt.now()
+ fixed_this_hour = dt.now(UTC)
952
953
# Test consumption logs
954
tst_consumption = pw_energy_pulses.PulseCollection(mac="0098765432101234")
0 commit comments