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

Method test_quiet_reporting

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

Source from the content-addressed store, hash-verified

1012 assert result.ret == 1
1013
1014 def test_quiet_reporting(self, pytester: Pytester) -> None:
1015 p1 = pytester.makepyfile("def test_pass(): pass")
1016 result = pytester.runpytest(p1, "-q")
1017 s = result.stdout.str()
1018 assert "test session starts" not in s
1019 assert p1.name not in s
1020 assert "===" not in s
1021 assert "passed" in s
1022
1023 def test_more_quiet_reporting(self, pytester: Pytester) -> None:
1024 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