@@ -1125,17 +1125,17 @@ def test_pulse_collection_consumption(
11251125 assert tst_consumption .log_rollover
11261126 assert tst_consumption .collected_pulses (
11271127 test_timestamp , is_consumption = True
1128- ) == (2700 , pulse_update_3 )
1128+ ) == (2700 + 2861 , pulse_update_3 )
11291129 test_timestamp = fixed_this_hour + td (hours = 1 , seconds = 18 )
11301130 tst_consumption .update_pulse_counter (45 , 0 , test_timestamp )
11311131 assert tst_consumption .collected_pulses (
11321132 test_timestamp , is_consumption = True
1133- ) == (90 , test_timestamp )
1133+ ) == (45 , test_timestamp )
11341134 tst_consumption .add_log (100 , 2 , (fixed_this_hour + td (hours = 1 )), 2222 )
11351135 assert not tst_consumption .log_rollover
11361136 assert tst_consumption .collected_pulses (
11371137 test_timestamp , is_consumption = True
1138- ) == (90 , test_timestamp )
1138+ ) == (45 , test_timestamp )
11391139 assert tst_consumption .collected_pulses (
11401140 fixed_this_hour , is_consumption = True
11411141 ) == (45 + 90 + 2222 , test_timestamp )
0 commit comments