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

Method test_verbose

testing/test_terminal.py:2285–2293  ·  view source on GitHub ↗
(self, many_tests_files, pytester: Pytester)

Source from the content-addressed store, hash-verified

2283 assert output.ret == ExitCode.NO_TESTS_COLLECTED
2284
2285 def test_verbose(self, many_tests_files, pytester: Pytester) -> None:
2286 output = pytester.runpytest("-v")
2287 output.stdout.re_match_lines(
2288 [
2289 r"test_bar.py::test_bar\[0\] PASSED \s+ \[ 5%\]",
2290 r"test_foo.py::test_foo\[4\] PASSED \s+ \[ 75%\]",
2291 r"test_foobar.py::test_foobar\[4\] PASSED \s+ \[100%\]",
2292 ]
2293 )
2294
2295 def test_verbose_count(self, many_tests_files, pytester: Pytester) -> None:
2296 pytester.makeini(

Callers

nothing calls this directly

Calls 2

re_match_linesMethod · 0.80
runpytestMethod · 0.45

Tested by

no test coverage detected