MCPcopy Create free account
hub / github.com/ElementsProject/lightning / pytest_runtest_makereport

Function pytest_runtest_makereport

tests/conftest.py:13–21  ·  view source on GitHub ↗
(item, call)

Source from the content-addressed store, hash-verified

11# https://github.com/pytest-dev/pytest/issues/288
12@pytest.hookimpl(tryfirst=True, hookwrapper=True)
13def 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
24def pytest_configure(config):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected