Update conftest.py
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user