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

Method add_attribute

src/_pytest/junitxml.py:107–108  ·  view source on GitHub ↗
(self, name: str, value: object)

Source from the content-addressed store, hash-verified

105 self.properties.append((str(name), bin_xml_escape(value)))
106
107 def add_attribute(self, name: str, value: object) -> None:
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."""

Callers

nothing calls this directly

Calls 1

bin_xml_escapeFunction · 0.85

Tested by

no test coverage detected