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

Function runpdb_and_get_report

testing/test_debugging.py:31–35  ·  view source on GitHub ↗
(pytester: Pytester, source: str)

Source from the content-addressed store, hash-verified

29
30
31def runpdb_and_get_report(pytester: Pytester, source: str):
32 result = runpdb(pytester, source)
33 reports = result.reprec.getreports("pytest_runtest_logreport")
34 assert len(reports) == 3, reports # setup/call/teardown
35 return reports[1]
36
37
38@pytest.fixture

Callers 5

test_pdb_on_failMethod · 0.85
test_pdb_on_xfailMethod · 0.85
test_pdb_on_skipMethod · 0.85
test_pdb_on_BdbQuitMethod · 0.85

Calls 2

runpdbFunction · 0.85
getreportsMethod · 0.45

Tested by

no test coverage detected