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

Function test_skip_counting_towards_summary

testing/test_terminal.py:2043–2058  ·  view source on GitHub ↗
(tr)

Source from the content-addressed store, hash-verified

2041
2042
2043def test_skip_counting_towards_summary(tr):
2044 class DummyReport(BaseReport):
2045 count_towards_summary = True
2046
2047 r1 = DummyReport()
2048 r2 = DummyReport()
2049 tr.stats = {"failed": (r1, r2)}
2050 tr._main_color = None
2051 res = tr.build_summary_stats_line()
2052 assert res == ([("2 failed", {"bold": True, "red": True})], "red")
2053
2054 r1.count_towards_summary = False
2055 tr.stats = {"failed": (r1, r2)}
2056 tr._main_color = None
2057 res = tr.build_summary_stats_line()
2058 assert res == ([("1 failed", {"bold": True, "red": True})], "red")
2059
2060
2061class TestClassicOutputStyle:

Callers

nothing calls this directly

Calls 2

DummyReportClass · 0.85

Tested by

no test coverage detected