Skip to content

Commit 1352ccc

Browse files
committed
feat: Add newline separation in tets with debug output
1 parent fa4fe00 commit 1352ccc

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/conftest.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import os
2+
3+
4+
def pytest_report_teststatus(report, config):
5+
if os.getenv("CDP_DEBUG"):
6+
if report.when == "call":
7+
# Add newlines to separate test results
8+
category = report.outcome
9+
shortletter = "\n\n" # dot / F / X / etc.
10+
verbose = "\n\n" # ("PASSED", "FAILED", ...)
11+
12+
return category, shortletter, verbose
13+
14+
return None

0 commit comments

Comments
 (0)