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

Function test_fail_on_errors

testing/test_stepwise.py:158–165  ·  view source on GitHub ↗
(error_pytester: Pytester)

Source from the content-addressed store, hash-verified

156
157
158def test_fail_on_errors(error_pytester: Pytester) -> None:
159 result = error_pytester.runpytest("-v", "--strict-markers", "--stepwise")
160
161 assert _strip_resource_warnings(result.stderr.lines) == []
162 stdout = result.stdout.str()
163
164 assert "test_error ERROR" in stdout
165 assert "test_success_after_fail" not in stdout
166
167
168def test_change_testfile(stepwise_pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 3

strMethod · 0.80
_strip_resource_warningsFunction · 0.70
runpytestMethod · 0.45

Tested by

no test coverage detected