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