(self, pytester: Pytester)
| 749 | assert "= 1 passed in" in rest |
| 750 | |
| 751 | def test_pdb_used_outside_test(self, pytester: Pytester) -> None: |
| 752 | p1 = pytester.makepyfile( |
| 753 | """ |
| 754 | import pytest |
| 755 | pytest.set_trace() |
| 756 | x = 5 |
| 757 | """ |
| 758 | ) |
| 759 | child = pytester.spawn(f"{sys.executable} {p1}") |
| 760 | child.expect("x = 5") |
| 761 | child.expect("Pdb") |
| 762 | child.sendeof() |
| 763 | self.flush(child) |
| 764 | |
| 765 | def test_pdb_used_in_generate_tests(self, pytester: Pytester) -> None: |
| 766 | p1 = pytester.makepyfile( |
nothing calls this directly
no test coverage detected