MCPcopy Create free account
hub / github.com/pytest-dev/pytest / make_hook_recorder

Method make_hook_recorder

src/_pytest/pytester.py:755–759  ·  view source on GitHub ↗

Create a new :py:class:`HookRecorder` for a PluginManager.

(self, pluginmanager: PytestPluginManager)

Source from the content-addressed store, hash-verified

753 return SysModulesSnapshot(preserve=preserve_module)
754
755 def make_hook_recorder(self, pluginmanager: PytestPluginManager) -> HookRecorder:
756 """Create a new :py:class:`HookRecorder` for a PluginManager."""
757 pluginmanager.reprec = reprec = HookRecorder(pluginmanager, _ispytest=True)
758 self._request.addfinalizer(reprec.finish_recording)
759 return reprec
760
761 def chdir(self) -> None:
762 """Cd into the temporary directory.

Callers 3

pytest_configureMethod · 0.45
test_make_hook_recorderFunction · 0.45

Calls 2

HookRecorderClass · 0.85
addfinalizerMethod · 0.45

Tested by

no test coverage detected