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

Method __init__

src/_pytest/fixtures.py:1254–1265  ·  view source on GitHub ↗
(self, request: FixtureRequest)

Source from the content-addressed store, hash-verified

1252 """
1253
1254 def __init__(self, request: FixtureRequest) -> None:
1255 super().__init__(
1256 config=request.config,
1257 baseid=NOTSET,
1258 argname="request",
1259 func=lambda: request,
1260 scope=Scope.Function,
1261 params=None,
1262 node=request.node,
1263 _ispytest=True,
1264 )
1265 self.cached_result = (request, [0], None)
1266
1267 def addfinalizer(self, finalizer: Callable[[], object]) -> None:
1268 pass

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected