* now showing pytest warnings summary by default.
* added ``--disable-pytest-warnings` flag to let users disable the warnings summary. * extended/changed unit tests for the changes in the pytest core.
This commit is contained in:
@@ -519,7 +519,7 @@ class TestWarning:
|
||||
""")
|
||||
result = testdir.runpytest()
|
||||
assert result.parseoutcomes()["pytest-warnings"] > 0
|
||||
assert "hello" not in result.stdout.str()
|
||||
assert "hello" in result.stdout.str()
|
||||
|
||||
result = testdir.runpytest("-rw")
|
||||
result.stdout.fnmatch_lines("""
|
||||
|
||||
Reference in New Issue
Block a user