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

Function test_force_short_summary

testing/test_terminal.py:2701–2715  ·  view source on GitHub ↗
(monkeypatch: MonkeyPatch, pytester: Pytester)

Source from the content-addressed store, hash-verified

2699
2700
2701def 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(

Callers

nothing calls this directly

Calls 4

setattrMethod · 0.80
fnmatch_linesMethod · 0.80
makepyfileMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…