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

Method make_function

testing/python/collect.py:362–369  ·  view source on GitHub ↗
(pytester: Pytester, **kwargs: Any)

Source from the content-addressed store, hash-verified

360
361 @staticmethod
362 def make_function(pytester: Pytester, **kwargs: Any) -> Any:
363 from _pytest.fixtures import FixtureManager
364
365 config = pytester.parseconfigure()
366 session = Session.from_config(config)
367 session._fixturemanager = FixtureManager(session)
368
369 return pytest.Function.from_parent(parent=session, **kwargs)
370
371 def test_function_equality(self, pytester: Pytester) -> None:
372 def func1():

Callers 2

Calls 4

FixtureManagerClass · 0.90
parseconfigureMethod · 0.45
from_configMethod · 0.45
from_parentMethod · 0.45

Tested by 2