We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7821fb8 commit edcc3f9Copy full SHA for edcc3f9
conftest.py
@@ -4,7 +4,21 @@
4
5
import os
6
7
+import qtpy
8
+
9
+import qwt
10
from qwt.tests.utils import TestEnvironment
11
12
# Set the unattended environment variable to 1 to avoid any user interaction
13
os.environ[TestEnvironment.UNATTENDED_ENV] = "1"
14
15
16
+def pytest_report_header(config):
17
+ """Add additional information to the pytest report header."""
18
+ qtbindings_version = qtpy.PYSIDE_VERSION
19
+ if qtbindings_version is None:
20
+ qtbindings_version = qtpy.PYQT_VERSION
21
+ return [
22
+ f"PythonQwt {qwt.__version__} [closest Qwt version: {qwt.QWT_VERSION_STR}]",
23
+ f"{qtpy.API_NAME} {qtbindings_version} [Qt version: {qtpy.QT_VERSION}]",
24
+ ]
0 commit comments