Issue 115: failure in parseargs will cause session not to have the items attribute.
(self, pytester: Pytester)
| 509 | ) |
| 510 | |
| 511 | def test_collectonly_missing_path(self, pytester: Pytester) -> None: |
| 512 | """Issue 115: failure in parseargs will cause session not to |
| 513 | have the items attribute.""" |
| 514 | result = pytester.runpytest("--collect-only", "uhm_missing_path") |
| 515 | assert result.ret == 4 |
| 516 | result.stderr.fnmatch_lines( |
| 517 | ["*ERROR: file or directory not found: uhm_missing_path"] |
| 518 | ) |
| 519 | |
| 520 | def test_collectonly_quiet(self, pytester: Pytester) -> None: |
| 521 | pytester.makepyfile("def test_foo(): pass") |
nothing calls this directly
no test coverage detected