MCPcopy Create free account
hub / github.com/pytest-dev/pytest / from_parent

Method from_parent

src/_pytest/python.py:786–788  ·  view source on GitHub ↗

The public constructor.

(cls, parent, *, name, obj=None, **kw)

Source from the content-addressed store, hash-verified

784
785 @classmethod
786 def from_parent(cls, parent, *, name, obj=None, **kw):
787 """The public constructor."""
788 return super().from_parent(name=name, parent=parent, **kw)
789
790 def newinstance(self):
791 return self.obj()

Callers 5

_genfunctionsMethod · 0.45
collectMethod · 0.45
from_parentMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected