Use singular 'item' when reporting a single test item
(self, pytester: Pytester)
| 334 | result.stdout.fnmatch_lines(["*KeyboardInterrupt*"]) |
| 335 | |
| 336 | def test_collect_single_item(self, pytester: Pytester) -> None: |
| 337 | """Use singular 'item' when reporting a single test item""" |
| 338 | pytester.makepyfile( |
| 339 | """ |
| 340 | def test_foobar(): |
| 341 | pass |
| 342 | """ |
| 343 | ) |
| 344 | result = pytester.runpytest() |
| 345 | result.stdout.fnmatch_lines(["collected 1 item"]) |
| 346 | |
| 347 | def test_rewrite(self, pytester: Pytester, monkeypatch) -> None: |
| 348 | config = pytester.parseconfig() |
nothing calls this directly
no test coverage detected