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

Method parseoutcomes

src/_pytest/pytester.py:557–567  ·  view source on GitHub ↗

Return a dictionary of outcome noun -> count from parsing the terminal output that the test process produced. The returned nouns will always be in plural form:: ======= 1 failed, 1 passed, 1 warning, 1 error in 0.13s ==== Will return ``{"failed": 1, "passed": 1

(self)

Source from the content-addressed store, hash-verified

555 )
556
557 def parseoutcomes(self) -> dict[str, int]:
558 """Return a dictionary of outcome noun -> count from parsing the terminal
559 output that the test process produced.
560
561 The returned nouns will always be in plural form::
562
563 ======= 1 failed, 1 passed, 1 warning, 1 error in 0.13s ====
564
565 Will return ``{"failed": 1, "passed": 1, "warnings": 1, "errors": 1}``.
566 """
567 return self.parse_summary_nouns(self.outlines)
568
569 @classmethod
570 def parse_summary_nouns(cls, lines) -> dict[str, int]:

Calls 1

parse_summary_nounsMethod · 0.95

Tested by

no test coverage detected