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

Method _add_simple

src/_pytest/junitxml.py:152–155  ·  view source on GitHub ↗
(self, tag: str, message: str, data: str | None = None)

Source from the content-addressed store, hash-verified

150 return testcase
151
152 def _add_simple(self, tag: str, message: str, data: str | None = None) -> None:
153 node = ET.Element(tag, message=message)
154 node.text = bin_xml_escape(data)
155 self.append(node)
156
157 def write_captured_output(self, report: TestReport) -> None:
158 if not self.xml.log_passing_tests and report.passed:

Callers 5

append_failureMethod · 0.95
append_collect_errorMethod · 0.95
append_errorMethod · 0.95
pytest_internalerrorMethod · 0.80

Calls 2

appendMethod · 0.95
bin_xml_escapeFunction · 0.85

Tested by

no test coverage detected