(
self,
ihook: pluggy.HookRelay,
suspend_capture_ctx: Callable[[], AbstractContextManager[None]],
request: SubRequest,
*,
_ispytest: bool = False,
)
| 146 | """Subtests fixture, enables declaring subtests inside test functions via the :meth:`test` method.""" |
| 147 | |
| 148 | def __init__( |
| 149 | self, |
| 150 | ihook: pluggy.HookRelay, |
| 151 | suspend_capture_ctx: Callable[[], AbstractContextManager[None]], |
| 152 | request: SubRequest, |
| 153 | *, |
| 154 | _ispytest: bool = False, |
| 155 | ) -> None: |
| 156 | check_ispytest(_ispytest) |
| 157 | self._ihook = ihook |
| 158 | self._suspend_capture_ctx = suspend_capture_ctx |
| 159 | self._request = request |
| 160 | |
| 161 | def test( |
| 162 | self, |
nothing calls this directly
no test coverage detected