From 07ac4fa926c4ba0576581cba9cdcbb4810fa6dcf Mon Sep 17 00:00:00 2001 From: tligui_y Date: Thu, 28 Aug 2025 00:09:07 +0200 Subject: [PATCH] Update conftest.py --- conftest.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/conftest.py b/conftest.py index 2bfa821..1b2e0d9 100644 --- a/conftest.py +++ b/conftest.py @@ -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")