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

Method __init__

src/_pytest/fixtures.py:1422–1431  ·  view source on GitHub ↗
(self, session: "Session")

Source from the content-addressed store, hash-verified

1420 FixtureLookupErrorRepr = FixtureLookupErrorRepr
1421
1422 def __init__(self, session: "Session") -> None:
1423 self.session = session
1424 self.config: Config = session.config
1425 self._arg2fixturedefs: Dict[str, List[FixtureDef[Any]]] = {}
1426 self._holderobjseen: Set[object] = set()
1427 # A mapping from a nodeid to a list of autouse fixtures it defines.
1428 self._nodeid_autousenames: Dict[str, List[str]] = {
1429 "": self.config.getini("usefixtures"),
1430 }
1431 session.config.pluginmanager.register(self, "funcmanage")
1432
1433 def _get_direct_parametrize_args(self, node: nodes.Node) -> List[str]:
1434 """Return all direct parametrization arguments of a node, so we don't

Callers

nothing calls this directly

Calls 2

registerMethod · 0.80
getiniMethod · 0.45

Tested by

no test coverage detected