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

Function pytest_plugin_registered

src/_pytest/legacypath.py:462–467  ·  view source on GitHub ↗
(plugin: object, manager: PytestPluginManager)

Source from the content-addressed store, hash-verified

460
461@hookimpl
462def pytest_plugin_registered(plugin: object, manager: PytestPluginManager) -> None:
463 # pytester is not loaded by default and is commonly loaded from a conftest,
464 # so checking for it in `pytest_configure` is not enough.
465 is_pytester = plugin is manager.get_plugin("pytester")
466 if is_pytester and not manager.is_registered(LegacyTestdirPlugin):
467 manager.register(LegacyTestdirPlugin, "legacypath-pytester")

Callers

nothing calls this directly

Calls 1

registerMethod · 0.80

Tested by

no test coverage detected