(self, pytester: Pytester, pdblist)
| 95 | return pdblist |
| 96 | |
| 97 | def test_pdb_on_fail(self, pytester: Pytester, pdblist) -> None: |
| 98 | rep = runpdb_and_get_report( |
| 99 | pytester, |
| 100 | """ |
| 101 | def test_func(): |
| 102 | assert 0 |
| 103 | """, |
| 104 | ) |
| 105 | assert rep.failed |
| 106 | assert len(pdblist) == 1 |
| 107 | tb = _pytest._code.Traceback(pdblist[0][0]) |
| 108 | assert tb[-1].name == "test_func" |
| 109 | |
| 110 | def test_pdb_on_xfail(self, pytester: Pytester, pdblist) -> None: |
| 111 | rep = runpdb_and_get_report( |
nothing calls this directly
no test coverage detected