add more indications to the result of the tests

This commit is contained in:
Yoav Caspi 2019-10-20 09:54:23 +03:00
parent e05b33ed16
commit 5624e366c1
1 changed files with 10 additions and 2 deletions

View File

@ -284,7 +284,13 @@ def test_setup_show_with_KeyboardInterrupt_in_test(testdir):
result = testdir.runpytest("--setup-show", p, no_reraise_ctrlc=True)
assert result.ret == 2
result.stdout.fnmatch_lines(
["*SETUP F arg*", "*test_arg (fixtures used: arg)*", "*TEARDOWN F arg*"]
[
"*SETUP F arg*",
"*test_arg (fixtures used: arg)*",
"*TEARDOWN F arg*",
"*! KeyboardInterrupt !*",
"*= no tests ran in *",
]
)
@ -302,4 +308,6 @@ def test_setup_show_with_KeyboardInterrupt_in_fixture(testdir):
)
result = testdir.runpytest("--setup-show", p, no_reraise_ctrlc=True)
assert result.ret == 2
result.stdout.fnmatch_lines(["*SETUP F arg*", "*KeyboardInterrupt*"])
result.stdout.fnmatch_lines(
["*SETUP F arg*", "*! KeyboardInterrupt !*", "*= no tests ran in *"]
)