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 b13088d commit f2735a6Copy full SHA for f2735a6
tests/test_usb.py
@@ -1130,7 +1130,12 @@ def test_pulse_collection_consumption(
1130
assert not tst_consumption.log_rollover
1131
assert tst_consumption.collected_pulses(
1132
test_timestamp, is_consumption=True
1133
- ) == (45, pulse_update_5)
+ ) == (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)
1139
1140
fixed_this_hour, is_consumption=True
1141
) == (45 + 2222, pulse_update_3)
0 commit comments