MCPcopy
hub / github.com/pytest-dev/pytest / test_pass_extra_reporting

Function test_pass_extra_reporting

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

Source from the content-addressed store, hash-verified

1258
1259
1260def test_pass_extra_reporting(pytester: Pytester) -> None:
1261 pytester.makepyfile("def test_this(): assert 1")
1262 result = pytester.runpytest()
1263 result.stdout.no_fnmatch_line("*short test summary*")
1264 result = pytester.runpytest("-rp")
1265 result.stdout.fnmatch_lines(["*test summary*", "PASS*test_pass_extra_reporting*"])
1266
1267
1268def 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