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

Function custom_pdb_calls

testing/test_debugging.py:40–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38
39@pytest.fixture
40def custom_pdb_calls() -> List[str]:
41 called = []
42
43 # install dummy debugger class and track which methods were called on it
44 class _CustomPdb:
45 quitting = False
46
47 def __init__(self, *args, **kwargs):
48 called.append("init")
49
50 def reset(self):
51 called.append("reset")
52
53 def interaction(self, *args):
54 called.append("interaction")
55
56 _pytest._CustomPdb = _CustomPdb # type: ignore
57 return called
58
59
60@pytest.fixture

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected