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

Method test_verbose_count

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

Source from the content-addressed store, hash-verified

2293 )
2294
2295 def test_verbose_count(self, many_tests_files, pytester: Pytester) -> None:
2296 pytester.makeini(
2297 """
2298 [pytest]
2299 console_output_style = count
2300 """
2301 )
2302 output = pytester.runpytest("-v")
2303 output.stdout.re_match_lines(
2304 [
2305 r"test_bar.py::test_bar\[0\] PASSED \s+ \[ 1/20\]",
2306 r"test_foo.py::test_foo\[4\] PASSED \s+ \[15/20\]",
2307 r"test_foobar.py::test_foobar\[4\] PASSED \s+ \[20/20\]",
2308 ]
2309 )
2310
2311 def test_verbose_times(self, many_tests_files, pytester: Pytester) -> None:
2312 pytester.makeini(

Callers

nothing calls this directly

Calls 3

re_match_linesMethod · 0.80
makeiniMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected