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

Method __init__

src/_pytest/main.py:463–481  ·  view source on GitHub ↗
(self, config: Config)

Source from the content-addressed store, hash-verified

461 exitstatus: Union[int, ExitCode]
462
463 def __init__(self, config: Config) -> None:
464 super().__init__(
465 path=config.rootpath,
466 fspath=None,
467 parent=None,
468 config=config,
469 session=self,
470 nodeid="",
471 )
472 self.testsfailed = 0
473 self.testscollected = 0
474 self.shouldstop: Union[bool, str] = False
475 self.shouldfail: Union[bool, str] = False
476 self.trace = config.trace.root.get("collection")
477 self._initialpaths: FrozenSet[Path] = frozenset()
478
479 self._bestrelpathcache: Dict[Path, str] = _bestrelpath_cache(config.rootpath)
480
481 self.config.pluginmanager.register(self, name="session")
482
483 @classmethod
484 def from_config(cls, config: Config) -> "Session":

Callers

nothing calls this directly

Calls 3

_bestrelpath_cacheClass · 0.85
registerMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected