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