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

Method __init__

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

Source from the content-addressed store, hash-verified

427 """Plugin which implements the --nf (run new-first) option."""
428
429 def __init__(self, config: Config) -> None:
430 self.config = config
431 self.active = config.option.newfirst
432 assert config.cache is not None
433 self.cached_nodeids = set(config.cache.get("cache/nodeids", []))
434
435 @hookimpl(wrapper=True, tryfirst=True)
436 def pytest_collection_modifyitems(self, items: list[nodes.Item]) -> Generator[None]:

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected