Skip to content

Commit 555f3d1

Browse files
committed
Uncomment disabled test-asserts
1 parent 5445d2b commit 555f3d1

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

tests/test_usb.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1152,17 +1152,17 @@ def test_pulse_collection_consumption(
11521152
) == (145, pulse_update_5)
11531153

11541154
# Test log rollover by updating log first before updating pulses
1155-
# tst_consumption.add_log(100, 3, (fixed_this_hour + td(hours=2)), 3333)
1156-
# assert tst_consumption.log_rollover
1157-
# assert tst_consumption.collected_pulses(
1158-
# fixed_this_hour, is_consumption=True
1159-
# ) == (145 + 2222 + 3333, pulse_update_5)
1160-
# pulse_update_6 = fixed_this_hour + td(hours=2, seconds=10)
1161-
# tst_consumption.update_pulse_counter(321, 0, pulse_update_6)
1162-
# assert not tst_consumption.log_rollover
1163-
# assert tst_consumption.collected_pulses(
1164-
# fixed_this_hour, is_consumption=True
1165-
# ) == (2222 + 3333 + 321, pulse_update_6)
1155+
tst_consumption.add_log(100, 3, (fixed_this_hour + td(hours=2)), 3333)
1156+
assert tst_consumption.log_rollover
1157+
assert tst_consumption.collected_pulses(
1158+
fixed_this_hour, is_consumption=True
1159+
) == (145 + 2222 + 3333, pulse_update_5)
1160+
pulse_update_6 = fixed_this_hour + td(hours=2, seconds=10)
1161+
tst_consumption.update_pulse_counter(321, 0, pulse_update_6)
1162+
assert not tst_consumption.log_rollover
1163+
assert tst_consumption.collected_pulses(
1164+
fixed_this_hour, is_consumption=True
1165+
) == (2222 + 3333 + 321, pulse_update_6)
11661166

11671167
@freeze_time(dt.now())
11681168
def test_pulse_collection_consumption_empty(

0 commit comments

Comments
 (0)