MCPcopy Create free account
hub / github.com/catboost/catboost / pytest_collectreport

Function pytest_collectreport

library/python/pytest/plugins/ya.py:568–574  ·  view source on GitHub ↗
(report)

Source from the content-addressed store, hash-verified

566
567
568def pytest_collectreport(report):
569 if not report.passed:
570 if hasattr(pytest_config, 'ya_trace_reporter'):
571 test_item = TestItem(report, None, None, pytest_config.option.test_suffix)
572 pytest_config.ya_trace_reporter.on_error(test_item)
573 else:
574 sys.stderr.write(yatest_lib.tools.to_utf8(report.longrepr))
575
576
577@pytest.hookimpl(tryfirst=True)

Callers

nothing calls this directly

Calls 4

hasattrFunction · 0.85
TestItemClass · 0.85
on_errorMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected