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

Method test_times

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

Source from the content-addressed store, hash-verified

2237 )
2238
2239 def test_times(self, many_tests_files, pytester: Pytester) -> None:
2240 pytester.makeini(
2241 """
2242 [pytest]
2243 console_output_style = times
2244 """
2245 )
2246 output = pytester.runpytest()
2247 output.stdout.re_match_lines(
2248 [
2249 r"test_bar.py \.{10} \s+ \d{1,3}[\.[a-z\ ]{1,2}\d{0,3}\w{1,2}$",
2250 r"test_foo.py \.{5} \s+ \d{1,3}[\.[a-z\ ]{1,2}\d{0,3}\w{1,2}$",
2251 r"test_foobar.py \.{5} \s+ \d{1,3}[\.[a-z\ ]{1,2}\d{0,3}\w{1,2}$",
2252 ]
2253 )
2254
2255 def test_times_multiline(
2256 self, more_tests_files, monkeypatch, pytester: Pytester

Callers

nothing calls this directly

Calls 3

re_match_linesMethod · 0.80
makeiniMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected