Open
Description
# conftest.py
def pytest_terminal_summary(terminalreporter):
terminalreporter.section("This is a section.")
terminalreporter.write_line("This is a line.")
terminalreporter.write_line("This is another line.")
terminalreporter.section("This is another section.")
terminalreporter.write_line("This is a 3rd line.")
terminalreporter.write_line("This is a 4th line.")
$ pipenv run pytest
====================== test session starts =======================
platform linux -- Python 3.10.12, pytest-8.3.2, pluggy-1.5.0
rootdir: /tmp/tmp.WXMdPn0b6L
collected 0 items
======================= This is a section. =======================
This is a line.
This is another line.
==================== This is another section. ====================
This is a 3rd line.
This is a 4th line.
===================== no tests ran in 0.00s ======================
$ pipenv run pytest
====================== test session starts =======================
platform linux -- Python 3.10.12, pytest-8.3.2, pluggy-1.5.0
rootdir: /tmp/tmp.WXMdPn0b6L
collected 1 item
test_pass.py . [100%]
======================= This is a section. =======================
<------ Where did this come from?
This is a line.
This is another line.
==================== This is another section. ====================
This is a 3rd line.
This is a 4th line.
======================= 1 passed in 0.00s ========================
Metadata
Metadata
Assignees
Labels
No labels