MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_terminal_summary

Function test_terminal_summary

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

Source from the content-addressed store, hash-verified

1598
1599
1600def test_terminal_summary(pytester: Pytester) -> None:
1601 pytester.makeconftest(
1602 """
1603 def pytest_terminal_summary(terminalreporter, exitstatus):
1604 w = terminalreporter
1605 w.section("hello")
1606 w.line("world")
1607 w.line("exitstatus: {0}".format(exitstatus))
1608 """
1609 )
1610 result = pytester.runpytest()
1611 result.stdout.fnmatch_lines(
1612 """
1613 *==== hello ====*
1614 world
1615 exitstatus: 5
1616 """
1617 )
1618
1619
1620@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