Update conftest.py

This commit is contained in:
2025-08-27 19:21:15 +02:00
parent 5f4c85ac01
commit da212aa6f8
+4 -2
View File
@@ -103,8 +103,10 @@ def pytest_runtest_makereport(item, call):
runtime_params.append(entry)
def pytest_configure(config):
sys.stdout = open("outputs/test-prints.log", "a")
def pytest_runtest_logreport(report):
if report.when == "call" and report.capstdout:
with open("outputs/test-prints.log", "a") as f:
f.write(report.capstdout)
def pytest_sessionfinish(session, exitstatus):
os.makedirs("markdown", exist_ok=True)