(
self, pluginmanager: PytestPluginManager, *, _ispytest: bool = False
)
| 257 | """ |
| 258 | |
| 259 | def __init__( |
| 260 | self, pluginmanager: PytestPluginManager, *, _ispytest: bool = False |
| 261 | ) -> None: |
| 262 | check_ispytest(_ispytest) |
| 263 | |
| 264 | self._pluginmanager = pluginmanager |
| 265 | self.calls: list[RecordedHookCall] = [] |
| 266 | self.ret: int | ExitCode | None = None |
| 267 | |
| 268 | def before(hook_name: str, hook_impls, kwargs) -> None: |
| 269 | self.calls.append(RecordedHookCall(hook_name, kwargs)) |
| 270 | |
| 271 | def after(outcome, hook_name: str, hook_impls, kwargs) -> None: |
| 272 | pass |
| 273 | |
| 274 | self._undo_wrapping = pluginmanager.add_hookcall_monitoring(before, after) |
| 275 | |
| 276 | def finish_recording(self) -> None: |
| 277 | self._undo_wrapping() |
nothing calls this directly
no test coverage detected