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

Method make_properties_node

src/_pytest/junitxml.py:110–117  ·  view source on GitHub ↗

Return a Junit node containing custom properties, if any.

(self)

Source from the content-addressed store, hash-verified

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

Callers 1

to_xmlMethod · 0.95

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected