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

Method __init__

src/_pytest/junitxml.py:90–98  ·  view source on GitHub ↗
(self, nodeid: Union[str, TestReport], xml: "LogXML")

Source from the content-addressed store, hash-verified

88
89class _NodeReporter:
90 def __init__(self, nodeid: Union[str, TestReport], xml: "LogXML") -> None:
91 self.id = nodeid
92 self.xml = xml
93 self.add_stats = self.xml.add_stats
94 self.family = self.xml.family
95 self.duration = 0
96 self.properties: List[Tuple[str, str]] = []
97 self.nodes: List[ET.Element] = []
98 self.attrs: Dict[str, str] = {}
99
100 def append(self, node: ET.Element) -> None:
101 self.xml.add_stats(node.tag)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected