Skip to content

Commit f1dab43

Browse files
committed
Update pytest_report_header to include additional environment variables
1 parent be3a773 commit f1dab43

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cdl/tests/conftest.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def pytest_report_header(config):
4141
qtbindings_version = qtpy.PYSIDE_VERSION
4242
if qtbindings_version is None:
4343
qtbindings_version = qtpy.PYQT_VERSION
44-
return [
44+
infolist = [
4545
f"DataLab {cdl.__version__} [Plugins: {nfstr if nfstr else 'None'}]",
4646
f"guidata {guidata.__version__}, PlotPy {plotpy.__version__}",
4747
f"PythonQwt {qwt.__version__}, "
@@ -50,6 +50,11 @@ def pytest_report_header(config):
5050
f"h5py {h5py.__version__}, "
5151
f"scikit-image {skimage.__version__}, OpenCV {cv2.__version__}",
5252
]
53+
for vname in ("CDL_DATA", "PYTHONPATH", "DEBUG"):
54+
value = os.environ.get(vname, "")
55+
if value:
56+
infolist.append(f"{vname}: {value}")
57+
return infolist
5358

5459

5560
def pytest_configure(config):

0 commit comments

Comments
 (0)