Instance (can be None) on which test function was collected.
(self)
| 511 | |
| 512 | @property |
| 513 | def instance(self): |
| 514 | """Instance (can be None) on which test function was collected.""" |
| 515 | # unittest support hack, see _pytest.unittest.TestCaseFunction. |
| 516 | try: |
| 517 | return self._pyfuncitem._testcase |
| 518 | except AttributeError: |
| 519 | function = getattr(self, "function", None) |
| 520 | return getattr(function, "__self__", None) |
| 521 | |
| 522 | @property |
| 523 | def module(self): |
nothing calls this directly
no outgoing calls
no test coverage detected