(self, pytester: Pytester)
| 763 | self.flush(child) |
| 764 | |
| 765 | def test_pdb_used_in_generate_tests(self, pytester: Pytester) -> None: |
| 766 | p1 = pytester.makepyfile( |
| 767 | """ |
| 768 | import pytest |
| 769 | def pytest_generate_tests(metafunc): |
| 770 | pytest.set_trace() |
| 771 | x = 5 |
| 772 | def test_foo(a): |
| 773 | pass |
| 774 | """ |
| 775 | ) |
| 776 | child = pytester.spawn_pytest(str(p1)) |
| 777 | child.expect("x = 5") |
| 778 | child.expect("Pdb") |
| 779 | child.sendeof() |
| 780 | self.flush(child) |
| 781 | |
| 782 | def test_pdb_collection_failure_is_shown(self, pytester: Pytester) -> None: |
| 783 | p1 = pytester.makepyfile("xxx") |
nothing calls this directly
no test coverage detected