MCPcopy Index your code
hub / github.com/plotly/dash / pytest_runtest_makereport

Function pytest_runtest_makereport

dash/testing/plugin.py:119–133  ·  view source on GitHub ↗
(item, call)

Source from the content-addressed store, hash-verified

117
118@pytest.hookimpl(tryfirst=True, hookwrapper=True)
119def pytest_runtest_makereport(item, call): # pylint: disable=unused-argument
120 # execute all other hooks to obtain the report object
121 outcome = yield
122 if not _installed:
123 return
124 rep = outcome.get_result()
125
126 # we only look at actual failing test calls, not setup/teardown
127 if rep.when == "call" and rep.failed and hasattr(item, "funcargs"):
128 for name, fixture in item.funcargs.items():
129 try:
130 if name in {"dash_duo", "dash_br", "dashr", "dashjl"}:
131 fixture.take_snapshot(item.name)
132 except Exception as e: # pylint: disable=broad-except
133 print(e)
134
135
136###############################################################################

Callers

nothing calls this directly

Calls 2

take_snapshotMethod · 0.80
get_resultMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…