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

Function test_parse_summary_line_always_plural

testing/test_pytester.py:781–807  ·  view source on GitHub ↗

Parsing summaries always returns plural nouns (#6505)

()

Source from the content-addressed store, hash-verified

779
780
781def test_parse_summary_line_always_plural() -> None:
782 """Parsing summaries always returns plural nouns (#6505)"""
783 lines = [
784 "some output 1",
785 "some output 2",
786 "======= 1 failed, 1 passed, 1 warning, 1 error in 0.13s ====",
787 "done.",
788 ]
789 assert pytester_mod.RunResult.parse_summary_nouns(lines) == {
790 "errors": 1,
791 "failed": 1,
792 "passed": 1,
793 "warnings": 1,
794 }
795
796 lines = [
797 "some output 1",
798 "some output 2",
799 "======= 1 failed, 1 passed, 2 warnings, 2 errors in 0.13s ====",
800 "done.",
801 ]
802 assert pytester_mod.RunResult.parse_summary_nouns(lines) == {
803 "errors": 2,
804 "failed": 1,
805 "passed": 1,
806 "warnings": 2,
807 }
808
809
810def test_makefile_joins_absolute_path(pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 1

parse_summary_nounsMethod · 0.80

Tested by

no test coverage detected