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

Method test_verbose_times

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

Source from the content-addressed store, hash-verified

2309 )
2310
2311 def test_verbose_times(self, many_tests_files, pytester: Pytester) -> None:
2312 pytester.makeini(
2313 """
2314 [pytest]
2315 console_output_style = times
2316 """
2317 )
2318 output = pytester.runpytest("-v")
2319 output.stdout.re_match_lines(
2320 [
2321 r"test_bar.py::test_bar\[0\] PASSED \s+ \d{1,3}[\.[a-z\ ]{1,2}\d{0,3}\w{1,2}$",
2322 r"test_foo.py::test_foo\[4\] PASSED \s+ \d{1,3}[\.[a-z\ ]{1,2}\d{0,3}\w{1,2}$",
2323 r"test_foobar.py::test_foobar\[4\] PASSED \s+ \d{1,3}[\.[a-z\ ]{1,2}\d{0,3}\w{1,2}$",
2324 ]
2325 )
2326
2327 def test_xdist_normal(
2328 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