MCPcopy
hub / github.com/pytest-dev/pytest / pytest_configure

Function pytest_configure

src/_pytest/cacheprovider.py:546–556  ·  view source on GitHub ↗

Configure cache system and register related plugins. Creates the Cache instance and registers the last-failed (LFPlugin) and new-first (NFPlugin) plugins with the plugin manager. :param config: pytest configuration object.

(config: Config)

Source from the content-addressed store, hash-verified

544
545@hookimpl(tryfirst=True)
546def pytest_configure(config: Config) -> None:
547 """Configure cache system and register related plugins.
548
549 Creates the Cache instance and registers the last-failed (LFPlugin)
550 and new-first (NFPlugin) plugins with the plugin manager.
551
552 :param config: pytest configuration object.
553 """
554 config.cache = Cache.for_config(config, _ispytest=True)
555 config.pluginmanager.register(LFPlugin(config), "lfplugin")
556 config.pluginmanager.register(NFPlugin(config), "nfplugin")
557
558
559@fixture

Callers

nothing calls this directly

Calls 4

LFPluginClass · 0.85
NFPluginClass · 0.85
for_configMethod · 0.80
registerMethod · 0.80

Tested by

no test coverage detected