(self, request)
| 84 | class TestPDB: |
| 85 | @pytest.fixture |
| 86 | def pdblist(self, request): |
| 87 | monkeypatch = request.getfixturevalue("monkeypatch") |
| 88 | pdblist = [] |
| 89 | |
| 90 | def mypdb(*args): |
| 91 | pdblist.append(args) |
| 92 | |
| 93 | plugin = request.config.pluginmanager.getplugin("debugging") |
| 94 | monkeypatch.setattr(plugin, "post_mortem", mypdb) |
| 95 | return pdblist |
| 96 | |
| 97 | def test_pdb_on_fail(self, pytester: Pytester, pdblist) -> None: |
| 98 | rep = runpdb_and_get_report( |
nothing calls this directly
no test coverage detected