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

Function test_pass_extra_reporting

testing/test_terminal.py:1103–1108  ·  view source on GitHub ↗
(pytester: Pytester)

Source from the content-addressed store, hash-verified

1101
1102
1103def test_pass_extra_reporting(pytester: Pytester) -> None:
1104 pytester.makepyfile("def test_this(): assert 1")
1105 result = pytester.runpytest()
1106 result.stdout.no_fnmatch_line("*short test summary*")
1107 result = pytester.runpytest("-rp")
1108 result.stdout.fnmatch_lines(["*test summary*", "PASS*test_pass_extra_reporting*"])
1109
1110
1111def test_pass_reporting_on_fail(pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected