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

Method cls

src/_pytest/python.py:276–279  ·  view source on GitHub ↗

Python class object this node was collected from (can be None).

(self)

Source from the content-addressed store, hash-verified

274
275 @property
276 def cls(self):
277 """Python class object this node was collected from (can be None)."""
278 node = self.getparent(Class)
279 return node.obj if node is not None else None
280
281 @property
282 def instance(self):

Callers

nothing calls this directly

Calls 1

getparentMethod · 0.80

Tested by

no test coverage detected