Test function object if the request has a per-function scope.
(self)
| 493 | |
| 494 | @property |
| 495 | def function(self): |
| 496 | """Test function object if the request has a per-function scope.""" |
| 497 | if self.scope != "function": |
| 498 | raise AttributeError( |
| 499 | f"function not available in {self.scope}-scoped context" |
| 500 | ) |
| 501 | return self._pyfuncitem.obj |
| 502 | |
| 503 | @property |
| 504 | def cls(self): |
nothing calls this directly
no outgoing calls
no test coverage detected