2017-10-11 16:11:16 +00:00
|
|
|
"""
|
|
|
|
Script for invoking pytest with options to select Qt library
|
|
|
|
"""
|
|
|
|
|
|
|
|
import sys
|
|
|
|
import pytest
|
|
|
|
|
|
|
|
args = sys.argv[1:]
|
2021-01-23 02:39:54 +00:00
|
|
|
if '--pyqt5' in args:
|
2017-10-11 16:11:16 +00:00
|
|
|
args.remove('--pyqt5')
|
|
|
|
import PyQt5
|
2019-05-29 05:42:01 +00:00
|
|
|
elif '--pyside2' in args:
|
|
|
|
args.remove('--pyside2')
|
|
|
|
import PySide2
|
2021-01-23 02:39:54 +00:00
|
|
|
elif '--pyside6' in args:
|
|
|
|
args.remove('--pyside6')
|
|
|
|
import PySide6
|
|
|
|
elif '--pyqt6' in args:
|
|
|
|
args.remove('--pyqt6')
|
|
|
|
import PyQt6
|
2017-10-11 16:11:16 +00:00
|
|
|
|
|
|
|
import pyqtgraph as pg
|
|
|
|
pg.systemInfo()
|
|
|
|
pytest.main(args)
|