(
self, more_tests_files, monkeypatch, pytester: Pytester
)
| 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( |
nothing calls this directly
no test coverage detected