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

Method test_verbose

testing/test_terminal.py:1905–1916  ·  view source on GitHub ↗
(self, pytester: Pytester, test_files)

Source from the content-addressed store, hash-verified

1903 )
1904
1905 def test_verbose(self, pytester: Pytester, test_files) -> None:
1906 result = pytester.runpytest("-o", "console_output_style=classic", "-v")
1907 result.stdout.fnmatch_lines(
1908 [
1909 "test_one.py::test_one PASSED",
1910 "test_two.py::test_two FAILED",
1911 f"sub{os.sep}test_three.py::test_three_1 PASSED",
1912 f"sub{os.sep}test_three.py::test_three_2 FAILED",
1913 f"sub{os.sep}test_three.py::test_three_3 PASSED",
1914 "*2 failed, 3 passed in*",
1915 ]
1916 )
1917
1918 def test_quiet(self, pytester: Pytester, test_files) -> None:
1919 result = pytester.runpytest("-o", "console_output_style=classic", "-q")

Callers

nothing calls this directly

Calls 2

fnmatch_linesMethod · 0.80
runpytestMethod · 0.45

Tested by

no test coverage detected