MCPcopy Create free account
hub / github.com/pytest-dev/pytest / pdblist

Method pdblist

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

Source from the content-addressed store, hash-verified

84class 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(

Callers

nothing calls this directly

Calls 3

getfixturevalueMethod · 0.80
getpluginMethod · 0.80
setattrMethod · 0.80

Tested by

no test coverage detected