Add simple script for invoking pytest
This commit is contained in:
parent
d32454ebb8
commit
89993ce700
24
test.py
Normal file
24
test.py
Normal file
@ -0,0 +1,24 @@
|
||||
"""
|
||||
Script for invoking pytest with options to select Qt library
|
||||
"""
|
||||
|
||||
import sys
|
||||
import pytest
|
||||
|
||||
args = sys.argv[1:]
|
||||
if '--pyside' in args:
|
||||
args.remove('--pyside')
|
||||
import PySide
|
||||
elif '--pyqt4' in args:
|
||||
args.remove('--pyqt4')
|
||||
import PyQt4
|
||||
elif '--pyqt5' in args:
|
||||
args.remove('--pyqt5')
|
||||
import PyQt5
|
||||
|
||||
import pyqtgraph as pg
|
||||
pg.systemInfo()
|
||||
|
||||
pytest.main(args)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user