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 069a53d commit fb16437Copy full SHA for fb16437
tests/test_usb.py
@@ -946,8 +946,9 @@ def test_pulse_collection_consumption(
946
"""Testing pulse collection class."""
947
monkeypatch.setattr(pw_energy_pulses, "MAX_LOG_HOURS", 24)
948
949
- fixed_timestamp_utc = dt.now(UTC)
950
- fixed_this_hour = fixed_timestamp_utc.replace(minute=0, second=0, microsecond=0)
+ # fixed_timestamp_utc = dt.now(UTC)
+ # 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")
952
953
# Test consumption logs
954
tst_consumption = pw_energy_pulses.PulseCollection(mac="0098765432101234")
0 commit comments