Merge pull request #2184 from eli-b/parseoutcomes-explicit-failure

Fail assert_outcomes() on missing terminal report
This commit is contained in:
Bruno Oliveira
2017-01-19 21:38:54 -02:00
committed by GitHub
4 changed files with 13 additions and 0 deletions

View File

@@ -367,6 +367,7 @@ class RunResult:
for num, cat in outcomes:
d[cat] = int(num)
return d
raise ValueError("Pytest terminal report not found")
def assert_outcomes(self, passed=0, skipped=0, failed=0):
""" assert that the specified outcomes appear with the respective