(pytester: Pytester)
| 1782 | |
| 1783 | |
| 1784 | def 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") |
nothing calls this directly
no test coverage detected