(self, pytester: Pytester)
| 406 | |
| 407 | class TestCollectonly: |
| 408 | def test_collectonly_basic(self, pytester: Pytester) -> None: |
| 409 | pytester.makepyfile( |
| 410 | """ |
| 411 | def test_func(): |
| 412 | pass |
| 413 | """ |
| 414 | ) |
| 415 | result = pytester.runpytest("--collect-only") |
| 416 | result.stdout.fnmatch_lines( |
| 417 | ["<Module test_collectonly_basic.py>", " <Function test_func>"] |
| 418 | ) |
| 419 | |
| 420 | def test_collectonly_skipped_module(self, pytester: Pytester) -> None: |
| 421 | pytester.makepyfile( |
nothing calls this directly
no test coverage detected