Skip to content

Commit 98e4c2a

Browse files
committed
test_summary_stats: tr._is_last_item
1 parent c0ef76e commit 98e4c2a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

testing/test_terminal.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1437,6 +1437,10 @@ def tr():
14371437
def test_summary_stats(tr, exp_line, exp_color, stats_arg):
14381438
tr.stats = stats_arg
14391439

1440+
# Fake "_is_last_item" to be True.
1441+
tr._testscollected = 0
1442+
assert tr._is_last_item
1443+
14401444
print("Based on stats: %s" % stats_arg)
14411445
print('Expect summary: "{}"; with color "{}"'.format(exp_line, exp_color))
14421446
(line, color) = tr.build_summary_stats_line()

0 commit comments

Comments
 (0)