()
| 38 | |
| 39 | @pytest.fixture |
| 40 | def 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 |
nothing calls this directly
no outgoing calls
no test coverage detected