(self, pytester: Pytester)
| 281 | assert result.ret == ExitCode.USAGE_ERROR |
| 282 | |
| 283 | def test_directory_skipped(self, pytester: Pytester) -> None: |
| 284 | pytester.makeconftest( |
| 285 | """ |
| 286 | import pytest |
| 287 | def pytest_ignore_collect(): |
| 288 | pytest.skip("intentional") |
| 289 | """ |
| 290 | ) |
| 291 | pytester.makepyfile("def test_hello(): pass") |
| 292 | result = pytester.runpytest() |
| 293 | assert result.ret == ExitCode.NO_TESTS_COLLECTED |
| 294 | result.stdout.fnmatch_lines(["*1 skipped*"]) |
| 295 | |
| 296 | def test_multiple_items_per_collector_byid(self, pytester: Pytester) -> None: |
| 297 | c = pytester.makeconftest( |
nothing calls this directly
no test coverage detected