Update conftest.py

This commit is contained in:
2025-08-28 00:09:07 +02:00
parent 386ecad569
commit 07ac4fa926
-6
View File
@@ -46,10 +46,6 @@ def pytest_sessionstart(session):
LOGFILE.parent.mkdir(parents=True, exist_ok=True)
LOGFILE.touch(exist_ok=True)
if LOGFILE.stat().st_size > 0:
content = LOGFILE.read_text().splitlines()
LOGFILE.write_text("\033[95m--- PRINTS of test run command processes (before pytest) ---\033[0m\n" + "\n".join(content) + "\n")
def pytest_runtest_logreport(report):
if report.when != "call": # ignore setup et teardown
return
@@ -62,5 +58,3 @@ def pytest_sessionfinish(session, exitstatus):
os.makedirs("markdown", exist_ok=True)
with open("markdown/runtime_params.json", "w") as f:
json.dump(runtime_params, f, indent=2)
with LOGFILE.open("a") as f:
f.write("\033[95m--- PRINTS of test run command processes (after pytest) ---\033[0m\n")