Skip to content

Commit 68f60f3

Browse files
committed
fake_session
1 parent 796014d commit 68f60f3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

testing/test_terminal.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1469,7 +1469,10 @@ def test_summary_stats(tr, exp_line, exp_color, stats_arg):
14691469
tr.stats = stats_arg
14701470

14711471
# Fake "_is_last_item" to be True.
1472-
tr._testscollected = 0
1472+
class fake_session:
1473+
testscollected = 0
1474+
1475+
tr._session = fake_session
14731476
assert tr._is_last_item
14741477

14751478
# Reset cache.

0 commit comments

Comments
 (0)