(self, pytester: Pytester)
| 494 | ) |
| 495 | |
| 496 | def test_collectonly_error(self, pytester: Pytester) -> None: |
| 497 | p = pytester.makepyfile("import Errlkjqweqwe") |
| 498 | result = pytester.runpytest("--collect-only", p) |
| 499 | assert result.ret == 2 |
| 500 | result.stdout.fnmatch_lines( |
| 501 | textwrap.dedent( |
| 502 | """\ |
| 503 | *ERROR* |
| 504 | *ImportError* |
| 505 | *No module named *Errlk* |
| 506 | *1 error* |
| 507 | """ |
| 508 | ).strip() |
| 509 | ) |
| 510 | |
| 511 | def test_collectonly_missing_path(self, pytester: Pytester) -> None: |
| 512 | """Issue 115: failure in parseargs will cause session not to |
nothing calls this directly
no test coverage detected