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

Method module

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

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

(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

getparentMethod · 0.80

Tested by

no test coverage detected