Parsing summaries always returns plural nouns (#6505)
()
| 779 | |
| 780 | |
| 781 | def 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 | |
| 810 | def test_makefile_joins_absolute_path(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected