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

Method _get_fixturestack

src/_pytest/fixtures.py:614–621  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

612 return fixturedef
613
614 def _get_fixturestack(self) -> List["FixtureDef[Any]"]:
615 current = self
616 values: List[FixtureDef[Any]] = []
617 while isinstance(current, SubRequest):
618 values.append(current._fixturedef) # type: ignore[has-type]
619 current = current._parent_request
620 values.reverse()
621 return values
622
623 def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None:
624 """Create a SubRequest based on "self" and call the execute method

Callers 2

_factorytracebackMethod · 0.95
__init__Method · 0.80

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected