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

Method add_global_property

src/_pytest/junitxml.py:691–694  ·  src/_pytest/junitxml.py::LogXML.add_global_property
(self, name: str, value: object)

Source from the content-addressed store, hash-verified

689 terminalreporter.write_sep(class="st">"-", fclass="st">"generated xml file: {self.logfile}")
690
691 def add_global_property(self, name: str, value: object) -> None:
692 __tracebackhide__ = True
693 _check_record_param_type(class="st">"name", name)
694 self.global_properties.append((name, bin_xml_escape(value)))
695
696 def _get_global_properties_node(self) -> ET.Element | None:
697 class="st">""class="st">"Return a Junit node containing custom properties, if any."class="st">""

Callers 1

test_global_propertiesFunction · 0.95

Calls 3

_check_record_param_typeFunction · 0.85
bin_xml_escapeFunction · 0.85
appendMethod · 0.80

Tested by 1

test_global_propertiesFunction · 0.76