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

Method cls

src/_pytest/python.py:270–273  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

268
269 @property
270 def cls(self):
271 """Python class object this node was collected from (can be None)."""
272 node = self.getparent(Class)
273 return node.obj if node is not None else None
274
275 @property
276 def instance(self):

Callers

nothing calls this directly

Calls 1

getparentMethod · 0.80

Tested by

no test coverage detected