Skip to content

Commit f2735a6

Browse files
committed
Adapt test 3
1 parent b13088d commit f2735a6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/test_usb.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1130,7 +1130,12 @@ def test_pulse_collection_consumption(
11301130
assert not tst_consumption.log_rollover
11311131
assert tst_consumption.collected_pulses(
11321132
test_timestamp, is_consumption=True
1133-
) == (45, pulse_update_5)
1133+
) == (200, pulse_update_5)
1134+
pulse_update_6 = fixed_this_hour + td(hours=1, seconds=48)
1135+
tst_consumption.update_pulse_counter(145, 0, pulse_update_6)
1136+
assert tst_consumption.collected_pulses(
1137+
test_timestamp, is_consumption=True
1138+
) == (300, pulse_update_6)
11341139
assert tst_consumption.collected_pulses(
11351140
fixed_this_hour, is_consumption=True
11361141
) == (45 + 2222, pulse_update_3)

0 commit comments

Comments
 (0)