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

Method from_parent

testing/test_collection.py:1397–1398  ·  view source on GitHub ↗
(cls, parent, *, name, x)

Source from the content-addressed store, hash-verified

1395
1396 @classmethod
1397 def from_parent(cls, parent, *, name, x):
1398 return super().from_parent(parent=parent, name=name, x=x)
1399
1400 collector = MyCollector.from_parent(parent=request.session, name="foo", x=10)
1401 assert collector.x == 10

Calls

no outgoing calls

Tested by

no test coverage detected