Function
pytest_plugin_registered
(plugin: object, manager: PytestPluginManager)
Source from the content-addressed store, hash-verified
| 460 | |
| 461 | @hookimpl |
| 462 | def 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
Tested by
no test coverage detected