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

Method cache_key

src/_pytest/fixtures.py:1241–1242  ·  view source on GitHub ↗
(self, request: SubRequest)

Source from the content-addressed store, hash-verified

1239 return result
1240
1241 def cache_key(self, request: SubRequest) -> object:
1242 return getattr(request, "param", None)
1243
1244 def __repr__(self) -> str:
1245 return f"<FixtureDef argname={self.argname!r} scope={self.scope!r} baseid={self.baseid!r}>"

Callers 3

executeMethod · 0.95
pytest_fixture_setupFunction · 0.80
pytest_fixture_setupFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected