Skip to content

Commit

Permalink
add more indications to the result of the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yoavcaspi committed Oct 20, 2019
1 parent e05b33e commit 5624e36
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions testing/python/setup_only.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,13 @@ def test_arg(arg):
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 *",
]
)


Expand All @@ -302,4 +308,6 @@ def test_arg(arg):
)
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 *"]
)

0 comments on commit 5624e36

Please sign in to comment.