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

Function nodeval

testing/test_junitxml.py:68–71  ·  view source on GitHub ↗
(node, name)

Source from the content-addressed store, hash-verified

66 __tracebackhide__ = True
67
68 def nodeval(node, name):
69 anode = node.getAttributeNode(name)
70 if anode is not None:
71 return anode.value
72
73 expected = {name: str(value) for name, value in kwargs.items()}
74 on_node = {name: nodeval(node, name) for name in expected}

Callers 1

assert_attrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected