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

Method __init__

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

Source from the content-addressed store, hash-verified

54
55class StepwisePlugin:
56 def __init__(self, config: Config) -> None:
57 self.config = config
58 self.session: Optional[Session] = None
59 self.report_status = ""
60 assert config.cache is not None
61 self.cache: Cache = config.cache
62 self.lastfailed: Optional[str] = self.cache.get(STEPWISE_CACHE_DIR, None)
63 self.skip: bool = config.getoption("stepwise_skip")
64
65 def pytest_sessionstart(self, session: Session) -> None:
66 self.session = session

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
getoptionMethod · 0.45

Tested by

no test coverage detected