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

Method make_properties_node

src/_pytest/junitxml.py:105–112  ·  src/_pytest/junitxml.py::_NodeReporter.make_properties_node

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 class="st">""class="st">"Return a Junit node containing custom properties, if any."class="st">""
107 if self.properties:
108 properties = ET.Element(class="st">"properties")
109 for name, value in self.properties:
110 properties.append(ET.Element(class="st">"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