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

Method test_times_multiline

testing/test_terminal.py:2255–2273  ·  view source on GitHub ↗
(
        self, more_tests_files, monkeypatch, pytester: Pytester
    )

Source from the content-addressed store, hash-verified

2253 )
2254
2255 def test_times_multiline(
2256 self, more_tests_files, monkeypatch, pytester: Pytester
2257 ) -> None:
2258 monkeypatch.setenv("COLUMNS", "40")
2259 pytester.makeini(
2260 """
2261 [pytest]
2262 console_output_style = times
2263 """
2264 )
2265 output = pytester.runpytest()
2266 output.stdout.re_match_lines(
2267 [
2268 r"test_bar.py ...................",
2269 r"........... \s+ \d{1,4}[\.[a-z\ ]{1,2}\d{0,3}\w{1,2}$",
2270 r"test_foo.py \.{5} \s+ \d{1,4}[\.[a-z\ ]{1,2}\d{0,3}\w{1,2}$",
2271 ],
2272 consecutive=True,
2273 )
2274
2275 def test_times_none_collected(self, pytester: Pytester) -> None:
2276 pytester.makeini(

Callers

nothing calls this directly

Calls 4

setenvMethod · 0.80
re_match_linesMethod · 0.80
makeiniMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected