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

Method add_attribute

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

Source from the content-addressed store, hash-verified

100 self.properties.append((str(name), bin_xml_escape(value)))
101
102 def add_attribute(self, name: str, value: object) -> None:
103 self.attrs[str(name)] = bin_xml_escape(value)
104
105 def make_properties_node(self) -> ET.Element | None:
106 """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