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

Function pytest_addhooks

src/_pytest/hookspec.py:56–64  ·  view source on GitHub ↗

Called at plugin registration time to allow adding new hooks via a call to ``pluginmanager.add_hookspecs(module_or_class, prefix)``. :param pytest.PytestPluginManager pluginmanager: The pytest plugin manager. .. note:: This hook is incompatible with ``hookwrapper=True``.

(pluginmanager: "PytestPluginManager")

Source from the content-addressed store, hash-verified

54
55@hookspec(historic=True)
56def pytest_addhooks(pluginmanager: "PytestPluginManager") -> None:
57 """Called at plugin registration time to allow adding new hooks via a call to
58 ``pluginmanager.add_hookspecs(module_or_class, prefix)``.
59
60 :param pytest.PytestPluginManager pluginmanager: The pytest plugin manager.
61
62 .. note::
63 This hook is incompatible with ``hookwrapper=True``.
64 """
65
66
67@hookspec(historic=True)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected