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 b50a073 commit 1ac3a97Copy full SHA for 1ac3a97
tests/test_usb.py
@@ -1112,9 +1112,10 @@ def test_pulse_collection_consumption(
1112
1113
# Test rollover by updating pulses before log record
1114
assert not tst_consumption.log_rollover
1115
- pulse_update_3 = fixed_this_hour + td(hours=1, seconds=3)
+ pulse_update_3 = fixed_this_hour + td(hours=1, minutes=1, seconds=3)
1116
tst_consumption.update_pulse_counter(45, 0, pulse_update_3)
1117
assert tst_consumption.log_rollover
1118
+ assert tst_consumption.hourly_reset_time == pulse_update_3
1119
test_timestamp = fixed_this_hour + td(hours=1, seconds=5)
1120
assert tst_consumption.collected_pulses(
1121
test_timestamp, is_consumption=True
0 commit comments