Skip to content

Commit 1ac3a97

Browse files
committed
Adapt hourly reset time, add hourly_reset_time test-assert
1 parent b50a073 commit 1ac3a97

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_usb.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1112,9 +1112,10 @@ def test_pulse_collection_consumption(
11121112

11131113
# Test rollover by updating pulses before log record
11141114
assert not tst_consumption.log_rollover
1115-
pulse_update_3 = fixed_this_hour + td(hours=1, seconds=3)
1115+
pulse_update_3 = fixed_this_hour + td(hours=1, minutes=1, seconds=3)
11161116
tst_consumption.update_pulse_counter(45, 0, pulse_update_3)
11171117
assert tst_consumption.log_rollover
1118+
assert tst_consumption.hourly_reset_time == pulse_update_3
11181119
test_timestamp = fixed_this_hour + td(hours=1, seconds=5)
11191120
assert tst_consumption.collected_pulses(
11201121
test_timestamp, is_consumption=True

0 commit comments

Comments
 (0)