MCPcopy
hub / github.com/pytest-dev/pytest / pdblist

Method pdblist

testing/test_debugging.py:105–114  ·  view source on GitHub ↗
(self, request)

Source from the content-addressed store, hash-verified

103class TestPDB:
104 @pytest.fixture
105 def pdblist(self, request):
106 monkeypatch = request.getfixturevalue("monkeypatch")
107 pdblist = []
108
109 def mypdb(*args):
110 pdblist.append(args)
111
112 plugin = request.config.pluginmanager.getplugin("debugging")
113 monkeypatch.setattr(plugin, "post_mortem", mypdb)
114 return pdblist
115
116 def test_pdb_on_fail(self, pytester: Pytester, pdblist) -> None:
117 rep = runpdb_and_get_report(

Callers

nothing calls this directly

Calls 3

getfixturevalueMethod · 0.80
getpluginMethod · 0.80
setattrMethod · 0.80

Tested by

no test coverage detected