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

Method __init__

src/_pytest/stepwise.py:100–108  ·  view source on GitHub ↗
(self, config: Config)

Source from the content-addressed store, hash-verified

98
99class StepwisePlugin:
100 def __init__(self, config: Config) -> None:
101 self.config = config
102 self.session: Session | None = None
103 self.report_status: list[str] = []
104 assert config.cache is not None
105 self.cache: Cache = config.cache
106 self.skip: bool = config.getoption("stepwise_skip")
107 self.reset: bool = config.getoption("stepwise_reset")
108 self.cached_info = self._load_cached_info()
109
110 def _load_cached_info(self) -> StepwiseCacheInfo:
111 cached_dict: dict[str, Any] | None = self.cache.get(STEPWISE_CACHE_DIR, None)

Callers

nothing calls this directly

Calls 2

_load_cached_infoMethod · 0.95
getoptionMethod · 0.80

Tested by

no test coverage detected