@@ -1139,11 +1139,6 @@ def test_pulse_collection_consumption(
11391139 assert tst_consumption .collected_pulses (
11401140 test_timestamp_2 , is_consumption = True
11411141 ) == (145 , pulse_update_5 )
1142- #tst_consumption.add_log(100, 3, (fixed_this_hour + td(hours=2)), 3333)
1143- #assert not tst_consumption.log_rollover
1144- #pulse_update_5 = fixed_this_hour + td(hours=2, minutes=1, seconds=18)
1145- #test_timestamp_3 = fixed_this_hour + td(hours=2, minutes=1, seconds=20)
1146-
11471142
11481143 # Test log rollover by updating log first before updating pulses
11491144 tst_consumption .add_log (100 , 3 , (fixed_this_hour + td (hours = 2 )), 3333 )
@@ -1158,21 +1153,6 @@ def test_pulse_collection_consumption(
11581153 fixed_this_hour , is_consumption = True
11591154 ) == (2222 + 3333 + 321 , pulse_update_6 )
11601155
1161- # Test next midnight rollover
1162- #pulse_update_6 = fixed_this_hour.replace(hour=0, minute=0, second=3) + td(days=1)
1163- #assert not tst_consumption.log_rollover
1164- #tst_consumption.update_pulse_counter(584, 0, pulse_update_6)
1165- #test_timestamp_3 = pulse_update_6 + td(hours=0, minutes=0, seconds=5)
1166- #assert tst_consumption.collected_pulses(
1167- # test_timestamp_3, is_consumption=True
1168- #) == (14000, pulse_update_6)
1169- #pulse_update_7 = fixed_this_hour.replace(hour=0, minute=1, second=3)
1170- #tst_consumption.update_pulse_counter(50, 0, pulse_update_7)
1171- #test_timestamp_4 = pulse_update_7 + td(hours=0, minutes=1, seconds=5)
1172- #assert tst_consumption.collected_pulses(
1173- # test_timestamp_3, is_consumption=True
1174- #) == (500, pulse_update_7)
1175-
11761156 @freeze_time (dt .now ())
11771157 def test_pulse_collection_consumption_empty (
11781158 self , monkeypatch : pytest .MonkeyPatch
0 commit comments