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

Method test_quiet_reporting

testing/test_terminal.py:1119–1126  ·  view source on GitHub ↗
(self, pytester: Pytester)

Source from the content-addressed store, hash-verified

1117 assert result.ret == 1
1118
1119 def test_quiet_reporting(self, pytester: Pytester) -> None:
1120 p1 = pytester.makepyfile("def test_pass(): pass")
1121 result = pytester.runpytest(p1, "-q")
1122 s = result.stdout.str()
1123 assert "test session starts" not in s
1124 assert p1.name not in s
1125 assert "===" not in s
1126 assert "passed" in s
1127
1128 def test_more_quiet_reporting(self, pytester: Pytester) -> None:
1129 p1 = pytester.makepyfile("def test_pass(): pass")

Callers

nothing calls this directly

Calls 3

strMethod · 0.80
makepyfileMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected