Update conftest.py

This commit is contained in:
2025-08-27 23:27:49 +02:00
parent 6170f70eba
commit fddbae0d4e
+1 -1
View File
@@ -44,7 +44,7 @@ LOGFILE = pathlib.Path("outputs/test-prints.log")
def pytest_sessionstart(session):
LOGFILE.parent.mkdir(parents=True, exist_ok=True)
LOGFILE.write_text("") # reset au début de la session
LOGFILE.touch(exist_ok=True) # reset au début de la session
def pytest_runtest_logreport(report):
if report.when != "call": # ignore setup et teardown