-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathconftest.py
More file actions
32 lines (27 loc) · 915 Bytes
/
conftest.py
File metadata and controls
32 lines (27 loc) · 915 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# content of conftest.py
import guidata
import h5py
import numpy
import PIL
import qtpy
import qwt
import scipy
import tifffile
from guidata.env import execenv
import plotpy
# Turn on unattended mode for executing tests without user interaction
execenv.unattended = True
execenv.verbose = "quiet"
def pytest_report_header(config):
"""Add additional information to the pytest report header."""
qtbindings_version = qtpy.PYSIDE_VERSION
if qtbindings_version is None:
qtbindings_version = qtpy.PYQT_VERSION
return [
f"PlotPy {plotpy.__version__}, guidata {guidata.__version__}, "
f"PythonQwt {qwt.__version__}, "
f"{qtpy.API_NAME} {qtbindings_version} [Qt version: {qtpy.QT_VERSION}]",
f"NumPy {numpy.__version__}, SciPy {scipy.__version__}, "
f"h5py {h5py.__version__}, "
f"Pillow {PIL.__version__}, tifffile {tifffile.__version__}",
]