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

Method _get_global_properties_node

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

Return a Junit node containing custom properties, if any.

(self)

Source from the content-addressed store, hash-verified

694 self.global_properties.append((name, bin_xml_escape(value)))
695
696 def _get_global_properties_node(self) -> ET.Element | None:
697 """Return a Junit node containing custom properties, if any."""
698 if self.global_properties:
699 properties = ET.Element("properties")
700 for name, value in self.global_properties:
701 properties.append(ET.Element("property", name=name, value=value))
702 return properties
703 return None

Callers 1

pytest_sessionfinishMethod · 0.95

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected