File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ def pytest_configure(config: _pytest.config.Config) -> None:
26
26
qt_api_string = config .getoption ("--qt-api" )
27
27
qt_api = ssst .cli .qt_api_cli_names [qt_api_string ]
28
28
29
- if qt_api is not None :
29
+ if qt_api is not None : # pragma: no branch
30
30
ssst ._utilities .configure_qtpy (api = qt_api )
31
31
32
32
# subprocessing to avoid import of qtpy, even in subprocessed tests
Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ extras=
12
12
pyqt5: pyqt5
13
13
pyside2: pyside2
14
14
setenv =
15
- pyqt5: QT_API = pyqt5
16
- pyside2: QT_API = pyside2
15
+ pyqt5: SSST_QT_API = pyqt5
16
+ pyside2: SSST_QT_API = pyside2
17
17
pyqt5: SSST_MYPY_QTPY_ARGUMENTS = --always-false =PYQT4 --always-true =PYQT5 --always-false =PYSIDE --always-false =PYSIDE2
18
18
pyside2: SSST_MYPY_QTPY_ARGUMENTS = --always-false =PYQT4 --always-false =PYQT5 --always-false =PYSIDE --always-true =PYSIDE2
19
19
QT_DEBUG_PLUGINS = 1
@@ -44,7 +44,7 @@ setenv =
44
44
commands =
45
45
{[python_info]commands}
46
46
ssst uic
47
- pytest --verbosity =1 --cov =ssst {posargs:--pyargs ssst}
47
+ pytest --verbosity =1 --cov =ssst -- qt-api ={env:SSST_QT_API} {posargs:--pyargs ssst}
48
48
coverage xml
49
49
50
50
[testenv:black]
You can’t perform that action at this time.
0 commit comments