MCPcopy Create free account
hub / github.com/pytest-dev/pytest / _add_simple

Method _add_simple

src/_pytest/junitxml.py:157–160  ·  view source on GitHub ↗
(self, tag: str, message: str, data: Optional[str] = None)

Source from the content-addressed store, hash-verified

155 return testcase
156
157 def _add_simple(self, tag: str, message: str, data: Optional[str] = None) -> None:
158 node = ET.Element(tag, message=message)
159 node.text = bin_xml_escape(data)
160 self.append(node)
161
162 def write_captured_output(self, report: TestReport) -> None:
163 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