Merge pull request #5174 from blueyed/no-terminal

Terminal plugin is not semi-essential anymore
This commit is contained in:
Daniel Hahler 2019-04-27 09:51:32 +02:00 committed by GitHub
commit ebc0cea226
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 5 deletions

View File

@ -123,7 +123,7 @@ essential_plugins = (
)
default_plugins = essential_plugins + (
"terminal", # Has essential options, but xdist uses -pno:terminal.
"terminal",
"debugging",
"unittest",
"capture",

View File

@ -1232,8 +1232,10 @@ def test_config_blocked_default_plugins(testdir, plugin):
if plugin != "terminal":
result.stdout.fnmatch_lines(["* 1 passed in *"])
if plugin != "terminal": # fails to report due to its options being used elsewhere.
p = testdir.makepyfile("def test(): assert 0")
result = testdir.runpytest(str(p), "-pno:%s" % plugin)
assert result.ret == EXIT_TESTSFAILED
p = testdir.makepyfile("def test(): assert 0")
result = testdir.runpytest(str(p), "-pno:%s" % plugin)
assert result.ret == EXIT_TESTSFAILED
if plugin != "terminal":
result.stdout.fnmatch_lines(["* 1 failed in *"])
else:
assert result.stdout.lines == [""]