(self, config: Config)
| 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": |
nothing calls this directly
no test coverage detected