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

Method is_node_active

src/_pytest/runner.py:515–518  ·  view source on GitHub ↗

Check if a node is currently active in the stack -- set up and not torn down yet.

(self, node: Node)

Source from the content-addressed store, hash-verified

513 ] = {}
514
515 def is_node_active(self, node: Node) -> bool:
516 """Check if a node is currently active in the stack -- set up and not
517 torn down yet."""
518 return node in self.stack
519
520 def setup(self, item: Item) -> None:
521 """Setup objects along the collector chain to the item."""

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected