(monkeypatch: MonkeyPatch, pytester: Pytester)
| 2699 | |
| 2700 | |
| 2701 | def test_force_short_summary(monkeypatch: MonkeyPatch, pytester: Pytester) -> None: |
| 2702 | monkeypatch.setattr(_pytest.terminal, "running_on_ci", lambda: False) |
| 2703 | |
| 2704 | pytester.makepyfile( |
| 2705 | """ |
| 2706 | def test(): |
| 2707 | assert "a\\n" * 10 == "" |
| 2708 | """ |
| 2709 | ) |
| 2710 | |
| 2711 | result = pytester.runpytest("-vv", "--force-short-summary") |
| 2712 | assert result.ret == 1 |
| 2713 | result.stdout.fnmatch_lines( |
| 2714 | ["*short test summary info*", "*AssertionError: assert 'a\\na\\na\\na..."] |
| 2715 | ) |
| 2716 | |
| 2717 | |
| 2718 | @pytest.mark.parametrize( |
nothing calls this directly
no test coverage detected
searching dependent graphs…