add assert_outcomes(warnings=) functionality to RunResult

* expose `warnings=` to pytester `assert_outcomes()`

* fix test fallout from adding warnings= to assert_outcomes()

* #closes 8593 - Improve test and add a `changelog` entry for the change
This commit is contained in:
Simon K
2021-07-31 15:25:10 +01:00
committed by GitHub
parent c27db3bd8e
commit ef5d81ad5c
5 changed files with 22 additions and 1 deletions

View File

@@ -335,7 +335,7 @@ def test_SkipTest_during_collection(pytester: Pytester) -> None:
"""
)
result = pytester.runpytest(p)
result.assert_outcomes(skipped=1)
result.assert_outcomes(skipped=1, warnings=1)
def test_SkipTest_in_test(pytester: Pytester) -> None: