MCPcopy
hub / github.com/pytest-dev/pytest / __init__

Method __init__

src/_pytest/subtests.py:148–159  ·  view source on GitHub ↗
(
        self,
        ihook: pluggy.HookRelay,
        suspend_capture_ctx: Callable[[], AbstractContextManager[None]],
        request: SubRequest,
        *,
        _ispytest: bool = False,
    )

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 1

check_ispytestFunction · 0.90

Tested by

no test coverage detected