INNER CODE UNIT · Python
pytest_runtest_logstart
etchdroid/etchdroid · appium-tests/conftest.py:58
def pytest_runtest_logstart(nodeid, location):
mark(nodeid.split("::")[-1], kind="test")
def pytest_runtest_logreport(report):
# Only the call phase: setup/teardown outcomes would double up on every test.
if report.when == "call":
mark(f"{report.outcome.upper()} {report.nodeid.split('::')[-1]}")
@pytest.hookimpl(wrapper=True)
def pytest_runtest_makereport(item, call):
report = yield
if report.when == "call" and report.failed and call.excinfo is not None:
report.longrepr = (
f"{call.excinfo.typename}: {_exception_message(call.excinfo.value)}\n\n"
f"{_repo_frames(call.excinfo.tb)}"