Add test and silence completely
This commit is contained in:
@@ -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(
|
||||
"""
|
||||
|
||||
@@ -229,9 +229,10 @@ class DSession(object):
|
||||
if self.terminal and not self.sched.has_pending:
|
||||
self.trdist.ensure_show_status()
|
||||
self.terminal.write_line("")
|
||||
self.terminal.write_line(
|
||||
"scheduling tests via %s" % (self.sched.__class__.__name__)
|
||||
)
|
||||
if self.config.option.verbose > 0:
|
||||
self.terminal.write_line(
|
||||
"scheduling tests via %s" % (self.sched.__class__.__name__)
|
||||
)
|
||||
self.sched.schedule()
|
||||
|
||||
def worker_logstart(self, node, nodeid, location):
|
||||
|
||||
Reference in New Issue
Block a user