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

Function test_terminal_summary

testing/test_terminal.py:1784–1801  ·  view source on GitHub ↗
(pytester: Pytester)

Source from the content-addressed store, hash-verified

1782
1783
1784def test_terminal_summary(pytester: Pytester) -> None:
1785 pytester.makeconftest(
1786 """
1787 def pytest_terminal_summary(terminalreporter, exitstatus):
1788 w = terminalreporter
1789 w.section("hello")
1790 w.line("world")
1791 w.line("exitstatus: {0}".format(exitstatus))
1792 """
1793 )
1794 result = pytester.runpytest()
1795 result.stdout.fnmatch_lines(
1796 """
1797 *==== hello ====*
1798 world
1799 exitstatus: 5
1800 """
1801 )
1802
1803
1804@pytest.mark.filterwarnings("default::UserWarning")

Callers

nothing calls this directly

Calls 3

fnmatch_linesMethod · 0.80
makeconftestMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected