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

Function test_fail_extra_reporting

testing/test_terminal.py:1083–1094  ·  view source on GitHub ↗
(pytester: Pytester, monkeypatch)

Source from the content-addressed store, hash-verified

1081
1082
1083def test_fail_extra_reporting(pytester: Pytester, monkeypatch) -> None:
1084 monkeypatch.setenv("COLUMNS", "80")
1085 pytester.makepyfile("def test_this(): assert 0, 'this_failed' * 100")
1086 result = pytester.runpytest("-rN")
1087 result.stdout.no_fnmatch_line("*short test summary*")
1088 result = pytester.runpytest()
1089 result.stdout.fnmatch_lines(
1090 [
1091 "*test summary*",
1092 "FAILED test_fail_extra_reporting.py::test_this - AssertionError: this_failedt...",
1093 ]
1094 )
1095
1096
1097def test_fail_reporting_on_pass(pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 5

setenvMethod · 0.80
no_fnmatch_lineMethod · 0.80
fnmatch_linesMethod · 0.80
makepyfileMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected