Use singular 'item' when reporting a single test item
(self, pytester: Pytester)
| 302 | result.stdout.fnmatch_lines(["*KeyboardInterrupt*"]) |
| 303 | |
| 304 | def test_collect_single_item(self, pytester: Pytester) -> None: |
| 305 | """Use singular 'item' when reporting a single test item""" |
| 306 | pytester.makepyfile( |
| 307 | """ |
| 308 | def test_foobar(): |
| 309 | pass |
| 310 | """ |
| 311 | ) |
| 312 | result = pytester.runpytest() |
| 313 | result.stdout.fnmatch_lines(["collected 1 item"]) |
| 314 | |
| 315 | def test_rewrite(self, pytester: Pytester, monkeypatch) -> None: |
| 316 | config = pytester.parseconfig() |
nothing calls this directly
no test coverage detected