Update conftest.py
This commit is contained in:
+2
-1
@@ -47,6 +47,7 @@ def pytest_runtest_makereport(item, call):
|
||||
runtime_params.append(entry)
|
||||
|
||||
# ---------- Capture prints ----------
|
||||
'''
|
||||
LOGFILE = pathlib.Path("outputs/test-prints.log")
|
||||
|
||||
def pytest_sessionstart(session):
|
||||
@@ -92,7 +93,7 @@ class TeeStdout:
|
||||
|
||||
def flush(self):
|
||||
self.original.flush()
|
||||
|
||||
'''
|
||||
def pytest_configure(config):
|
||||
sys.stdout = TeeStdout(sys.stdout)
|
||||
sys.stderr = TeeStdout(sys.stderr)
|
||||
|
||||
Reference in New Issue
Block a user