Skip to content

Commit 5bd5819

Browse files
committed
Try test 3
1 parent 265b94a commit 5bd5819

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_usb.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1117,15 +1117,15 @@ def test_pulse_collection_consumption(
11171117
assert not tst_consumption.log_rollover
11181118
assert tst_consumption.collected_pulses(
11191119
test_timestamp, is_consumption=True
1120-
) == (45, pulse_update_3)
1120+
) == (2500 + 1111 + 1000 + 750, pulse_update_3)
11211121
pulse_update_4 = fixed_this_hour + td(hours=1, minutes=1, seconds=3)
1122-
tst_consumption.update_pulse_counter(45, 0, pulse_update_)
1122+
tst_consumption.update_pulse_counter(45, 0, pulse_update_4)
11231123
assert tst_consumption.log_rollover
1124-
assert tst_consumption.hourly_reset_time == pulse_update_3
1124+
assert tst_consumption.hourly_reset_time == pulse_update_4
11251125
test_timestamp = fixed_this_hour + td(hours=1, minutes=1, seconds=5)
11261126
assert tst_consumption.collected_pulses(
11271127
test_timestamp, is_consumption=True
1128-
) == (45, pulse_update_3)
1128+
) == (45, pulse_update_4)
11291129
tst_consumption.add_log(100, 2, (fixed_this_hour + td(hours=1)), 2222)
11301130
assert not tst_consumption.log_rollover
11311131
# Test collection of the last full hour

0 commit comments

Comments
 (0)