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

Method __init__

src/_pytest/cacheprovider.py:393–397  ·  view source on GitHub ↗
(self, config: Config)

Source from the content-addressed store, hash-verified

391 """Plugin which implements the --nf (run new-first) option."""
392
393 def __init__(self, config: Config) -> None:
394 self.config = config
395 self.active = config.option.newfirst
396 assert config.cache is not None
397 self.cached_nodeids = set(config.cache.get("cache/nodeids", []))
398
399 @hookimpl(hookwrapper=True, tryfirst=True)
400 def pytest_collection_modifyitems(

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected