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

Method _get_global_properties_node

src/_pytest/junitxml.py:689–696  ·  view source on GitHub ↗

Return a Junit node containing custom properties, if any.

(self)

Source from the content-addressed store, hash-verified

687 self.global_properties.append((name, bin_xml_escape(value)))
688
689 def _get_global_properties_node(self) -> Optional[ET.Element]:
690 """Return a Junit node containing custom properties, if any."""
691 if self.global_properties:
692 properties = ET.Element("properties")
693 for name, value in self.global_properties:
694 properties.append(ET.Element("property", name=name, value=value))
695 return properties
696 return None

Callers 1

pytest_sessionfinishMethod · 0.95

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected