Skip to content

Commit b6f1dad

Browse files
committed
Tighten test
1 parent 1837858 commit b6f1dad

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

testing/test_stepwise.py

+11-2
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,11 @@ def test_3():
384384
)
385385
result = pytester.runpytest("--stepwise")
386386
result.stdout.fnmatch_lines(
387-
["*::test_2 - assert False*", "*failed, continuing from this test next run*"]
387+
[
388+
"*::test_2 - assert False*",
389+
"*failed, continuing from this test next run*",
390+
"=* 1 failed, 1 passed in *",
391+
]
388392
)
389393

390394
# Run a specific test without passing `--stepwise`.
@@ -394,7 +398,12 @@ def test_3():
394398
# Running with `--stepwise` should continue from the last failing test.
395399
result = pytester.runpytest("--stepwise")
396400
result.stdout.fnmatch_lines(
397-
["*::test_2 - assert False*", "*failed, continuing from this test next run*"]
401+
[
402+
"stepwise: skipping 1 already passed items.",
403+
"*::test_2 - assert False*",
404+
"*failed, continuing from this test next run*",
405+
"=* 1 failed, 1 deselected in *",
406+
]
398407
)
399408

400409

0 commit comments

Comments
 (0)