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

Method make_properties_node

src/_pytest/junitxml.py:105–112  ·  view source on GitHub ↗

Return a Junit node containing custom properties, if any.

(self)

Source from the content-addressed store, hash-verified

103 self.attrs[str(name)] = bin_xml_escape(value)
104
105 def make_properties_node(self) -> ET.Element | None:
106 """Return a Junit node containing custom properties, if any."""
107 if self.properties:
108 properties = ET.Element("properties")
109 for name, value in self.properties:
110 properties.append(ET.Element("property", name=name, value=value))
111 return properties
112 return None
113
114 def record_testreport(self, testreport: TestReport) -> None:
115 names = mangle_test_address(testreport.nodeid)

Callers 1

to_xmlMethod · 0.95

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected