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

Method test_verbose_count

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

Source from the content-addressed store, hash-verified

2048 )
2049
2050 def test_verbose_count(self, many_tests_files, pytester: Pytester) -> None:
2051 pytester.makeini(
2052 """
2053 [pytest]
2054 console_output_style = count
2055 """
2056 )
2057 output = pytester.runpytest("-v")
2058 output.stdout.re_match_lines(
2059 [
2060 r"test_bar.py::test_bar\[0\] PASSED \s+ \[ 1/20\]",
2061 r"test_foo.py::test_foo\[4\] PASSED \s+ \[15/20\]",
2062 r"test_foobar.py::test_foobar\[4\] PASSED \s+ \[20/20\]",
2063 ]
2064 )
2065
2066 def test_xdist_normal(
2067 self, many_tests_files, pytester: Pytester, monkeypatch

Callers

nothing calls this directly

Calls 3

re_match_linesMethod · 0.80
makeiniMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected