(pytester: Pytester, source: str)
| 29 | |
| 30 | |
| 31 | def runpdb_and_get_report(pytester: Pytester, source: str): |
| 32 | p = pytester.makepyfile(source) |
| 33 | result = pytester.runpytest_inprocess("--pdb", p) |
| 34 | reports = result.reprec.getreports("pytest_runtest_logreport") # type: ignore[attr-defined] |
| 35 | assert len(reports) == 3, reports # setup/call/teardown |
| 36 | return reports[1] |
| 37 | |
| 38 | |
| 39 | @pytest.fixture |
no test coverage detected