Python module object where the test function was collected.
(self)
| 521 | |
| 522 | @property |
| 523 | def module(self): |
| 524 | """Python module object where the test function was collected.""" |
| 525 | if self.scope not in ("function", "class", "module"): |
| 526 | raise AttributeError(f"module not available in {self.scope}-scoped context") |
| 527 | return self._pyfuncitem.getparent(_pytest.python.Module).obj |
| 528 | |
| 529 | @property |
| 530 | def path(self) -> Path: |