(pytester: Pytester)
| 1598 | |
| 1599 | |
| 1600 | def 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") |
nothing calls this directly
no test coverage detected