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

Method hasopt

src/_pytest/terminal.py:474–476  ·  view source on GitHub ↗
(self, char: str)

Source from the content-addressed store, hash-verified

472 return len(self._progress_nodeids_reported)
473
474 def hasopt(self, char: str) -> bool:
475 char = {"xfailed": "x", "skipped": "s"}.get(char, char)
476 return char in self.reportchars
477
478 def write_fspath_result(self, nodeid: str, res: str, **markup: bool) -> None:
479 fspath = self.config.rootpath / nodeid.split("::", maxsplit=1)[0]

Callers 3

summary_warningsMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected