(pytester: Pytester, monkeypatch)
| 1081 | |
| 1082 | |
| 1083 | def test_fail_extra_reporting(pytester: Pytester, monkeypatch) -> None: |
| 1084 | monkeypatch.setenv("COLUMNS", "80") |
| 1085 | pytester.makepyfile("def test_this(): assert 0, 'this_failed' * 100") |
| 1086 | result = pytester.runpytest("-rN") |
| 1087 | result.stdout.no_fnmatch_line("*short test summary*") |
| 1088 | result = pytester.runpytest() |
| 1089 | result.stdout.fnmatch_lines( |
| 1090 | [ |
| 1091 | "*test summary*", |
| 1092 | "FAILED test_fail_extra_reporting.py::test_this - AssertionError: this_failedt...", |
| 1093 | ] |
| 1094 | ) |
| 1095 | |
| 1096 | |
| 1097 | def test_fail_reporting_on_pass(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected