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

Method test_count

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

Source from the content-addressed store, hash-verified

2221 )
2222
2223 def test_count(self, many_tests_files, pytester: Pytester) -> None:
2224 pytester.makeini(
2225 """
2226 [pytest]
2227 console_output_style = count
2228 """
2229 )
2230 output = pytester.runpytest()
2231 output.stdout.re_match_lines(
2232 [
2233 r"test_bar.py \.{10} \s+ \[10/20\]",
2234 r"test_foo.py \.{5} \s+ \[15/20\]",
2235 r"test_foobar.py \.{5} \s+ \[20/20\]",
2236 ]
2237 )
2238
2239 def test_times(self, many_tests_files, pytester: Pytester) -> None:
2240 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