MCPcopy
hub / github.com/pytest-dev/pytest / report

Function report

extra/get_issues.py:59–75  ·  extra/get_issues.py::report
(issues)

Source from the content-addressed store, hash-verified

57
58
59def report(issues):
60 for issue in issues:
61 title = issue[class="st">"title"]
62 class="cm"># body = issue[class="st">"body"]
63 kind = _get_kind(issue)
64 status = issue[class="st">"state"]
65 number = issue[class="st">"number"]
66 link = fclass="st">"https://github.com/pytest-dev/pytest/issues/{number}/"
67 print(class="st">"----")
68 print(status, kind, link)
69 print(title)
70 class="cm"># print()
71 class="cm"># lines = body.split(class="st">"\n")
72 class="cm"># print(class="st">"\n".join(lines[:3]))
73 class="cm"># if len(lines) > 3 or len(body) > 240:
74 class="cm"># print(class="st">"...")
75 print(fclass="st">"\n\nFound {len(issues)} open issues")
76
77
78if __name__ == class="st">"__main__":

Callers 1

mainFunction · 0.85

Calls 1

_get_kindFunction · 0.85

Tested by

no test coverage detected