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

Method _get_comment

library/python/pytest/plugins/ya.py:974–982  ·  view source on GitHub ↗
(test_item, limit=8*1024)

Source from the content-addressed store, hash-verified

972
973 @staticmethod
974 def _get_comment(test_item, limit=8*1024):
975 msg = yatest_lib.tools.to_utf8(test_item.error)
976 if not msg:
977 return ""
978
979 if len(msg) > limit:
980 msg = msg[:limit - 3] + "..."
981
982 return msg + "[[rst]]"
983
984 def _dump_trace(self, name, value):
985 event = {

Callers 2

on_finish_test_caseMethod · 0.95
on_errorMethod · 0.95

Calls 1

lenFunction · 0.85

Tested by

no test coverage detected