(item, call)
| 11 | # https://github.com/pytest-dev/pytest/issues/288 |
| 12 | @pytest.hookimpl(tryfirst=True, hookwrapper=True) |
| 13 | def pytest_runtest_makereport(item, call): |
| 14 | # execute all other hooks to obtain the report object |
| 15 | outcome = yield |
| 16 | rep = outcome.get_result() |
| 17 | |
| 18 | # set a report attribute for each phase of a call, which can |
| 19 | # be "setup", "call", "teardown" |
| 20 | |
| 21 | setattr(item, "rep_" + rep.when, rep) |
| 22 | |
| 23 | |
| 24 | def pytest_configure(config): |
nothing calls this directly
no outgoing calls
no test coverage detected