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

Function getfixturemarker

src/_pytest/fixtures.py:189–193  ·  view source on GitHub ↗

Return fixturemarker or None if it doesn't exist

(obj: object)

Source from the content-addressed store, hash-verified

187
188# TODO: Try to use FixtureFunctionDefinition instead of the marker
189def getfixturemarker(obj: object) -> FixtureFunctionMarker | None:
190 """Return fixturemarker or None if it doesn't exist"""
191 if isinstance(obj, FixtureFunctionDefinition):
192 return obj._fixture_function_marker
193 return None
194
195
196# Algorithm for sorting on a per-parametrized resource setup basis.

Callers 2

store_markFunction · 0.85

Calls

no outgoing calls

Tested by 1