MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_assert_outcomes_after_pytest_error

Function test_assert_outcomes_after_pytest_error

testing/test_pytester.py:296–301  ·  view source on GitHub ↗
(pytester: Pytester)

Source from the content-addressed store, hash-verified

294
295
296def test_assert_outcomes_after_pytest_error(pytester: Pytester) -> None:
297 pytester.makepyfile("def test_foo(): assert True")
298
299 result = pytester.runpytest("--unexpected-argument")
300 with pytest.raises(ValueError, match="Pytest terminal summary report not found"):
301 result.assert_outcomes(passed=0)
302
303
304def test_cwd_snapshot(pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 3

assert_outcomesMethod · 0.80
makepyfileMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected