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

Method test_count

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

Source from the content-addressed store, hash-verified

2022 )
2023
2024 def test_count(self, many_tests_files, pytester: Pytester) -> None:
2025 pytester.makeini(
2026 """
2027 [pytest]
2028 console_output_style = count
2029 """
2030 )
2031 output = pytester.runpytest()
2032 output.stdout.re_match_lines(
2033 [
2034 r"test_bar.py \.{10} \s+ \[10/20\]",
2035 r"test_foo.py \.{5} \s+ \[15/20\]",
2036 r"test_foobar.py \.{5} \s+ \[20/20\]",
2037 ]
2038 )
2039
2040 def test_verbose(self, many_tests_files, pytester: Pytester) -> None:
2041 output = pytester.runpytest("-v")

Callers

nothing calls this directly

Calls 3

re_match_linesMethod · 0.80
makeiniMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected