(item, call)
| 117 | |
| 118 | @pytest.hookimpl(tryfirst=True, hookwrapper=True) |
| 119 | def 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 | ############################################################################### |
nothing calls this directly
no test coverage detected
searching dependent graphs…