fix tests by adding additional output to expected responses

This commit is contained in:
Kristoffer Nordstroem 2019-01-24 00:08:43 +01:00
parent 8723eb16ea
commit 6d38868950
2 changed files with 3 additions and 3 deletions

View File

@ -418,7 +418,7 @@ class TestLastFailed(object):
result = testdir.runpytest("--lf") result = testdir.runpytest("--lf")
result.stdout.fnmatch_lines( result.stdout.fnmatch_lines(
[ [
"collected 4 items / 2 deselected", "collected 4 items / 2 deselected / 2 selected",
"run-last-failure: rerun previous 2 failures", "run-last-failure: rerun previous 2 failures",
"*2 failed, 2 deselected in*", "*2 failed, 2 deselected in*",
] ]

View File

@ -474,7 +474,7 @@ class TestTerminalFunctional(object):
) )
result = testdir.runpytest("-k", "test_two:", testpath) result = testdir.runpytest("-k", "test_two:", testpath)
result.stdout.fnmatch_lines( result.stdout.fnmatch_lines(
["collected 3 items / 1 deselected", "*test_deselected.py ..*"] ["collected 3 items / 1 deselected / 2 selected", "*test_deselected.py ..*"]
) )
assert result.ret == 0 assert result.ret == 0
@ -498,7 +498,7 @@ class TestTerminalFunctional(object):
result = testdir.runpytest("-m", "not foo") result = testdir.runpytest("-m", "not foo")
result.stdout.fnmatch_lines( result.stdout.fnmatch_lines(
[ [
"collected 3 items / 1 deselected", "collected 3 items / 1 deselected / 2 selected",
"*test_show_deselected.py ..*", "*test_show_deselected.py ..*",
"*= 2 passed, 1 deselected in * =*", "*= 2 passed, 1 deselected in * =*",
] ]