Add test and silence completely

This commit is contained in:
Ethan Smith
2018-11-29 00:25:30 -08:00
parent 5465d936f7
commit 566480fdd3
2 changed files with 16 additions and 3 deletions

View File

@@ -358,6 +358,18 @@ class TestDistEach:
class TestTerminalReporting:
def test_quiet_no_output(self, testdir):
testdir.makepyfile(
"""
def test_ok():
pass
"""
)
result = testdir.runpytest("-q")
result.stdout.fnmatch_lines(
[".*[100%]*", "*1*passed*"]
)
def test_pass_skip_fail(self, testdir):
testdir.makepyfile(
"""