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

Method __get__

src/_pytest/fixtures.py:1412–1419  ·  view source on GitHub ↗

Behave like a method if the function it was applied to was a method.

(self, instance, owner=None)

Source from the content-addressed store, hash-verified

1410 return f"<pytest_fixture({self._fixture_function})>"
1411
1412 def __get__(self, instance, owner=None):
1413 """Behave like a method if the function it was applied to was a method."""
1414 return FixtureFunctionDefinition(
1415 function=self._fixture_function,
1416 fixture_function_marker=self._fixture_function_marker,
1417 instance=instance,
1418 _ispytest=True,
1419 )
1420
1421 def __call__(self, *args: Any, **kwds: Any) -> Any:
1422 message = (

Callers 2

resolve_fixture_functionFunction · 0.80
__init__Method · 0.80

Calls 1

Tested by

no test coverage detected