MCPcopy Create free account
hub / github.com/seleniumbase/SeleniumBase / pytest_runtest_logreport

Function pytest_runtest_logreport

seleniumbase/plugins/pytest_plugin.py:2215–2230  ·  view source on GitHub ↗
(report)

Source from the content-addressed store, hash-verified

2213
2214
2215def pytest_runtest_logreport(report):
2216 with suppress(Exception):
2217 if _pytest_config: # Global variable
2218 htmlpath = _pytest_config.getoption("--html", default=None)
2219 if htmlpath:
2220 # The HTML report option is enabled
2221 if report.when == "teardown":
2222 if getattr(sb_config, "_multithreaded", None):
2223 # Multi-threaded tests
2224 from filelock import FileLock
2225 dash_lock = FileLock(constants.Report.LOCKFILE)
2226 with dash_lock:
2227 _fix_html_report(htmlpath)
2228 else:
2229 # Single-threaded tests
2230 _fix_html_report(htmlpath)
2231
2232
2233def _fix_html_report(report_path):

Callers

nothing calls this directly

Calls 1

_fix_html_reportFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…