forked from openlp/openlp
Add pytest to optional dependencies in check_dependecies.py
This commit is contained in:
parent
b24a73d806
commit
e4f3041802
@ -261,8 +261,10 @@ def main(args=None):
|
|||||||
app.setApplicationName(u'OpenLP')
|
app.setApplicationName(u'OpenLP')
|
||||||
app.setApplicationVersion(get_application_version()[u'version'])
|
app.setApplicationVersion(get_application_version()[u'version'])
|
||||||
# Instance check
|
# Instance check
|
||||||
if app.isAlreadyRunning():
|
if not options.testing:
|
||||||
sys.exit()
|
# Instance check
|
||||||
|
if app.isAlreadyRunning():
|
||||||
|
sys.exit()
|
||||||
# First time checks in settings
|
# First time checks in settings
|
||||||
if not QtCore.QSettings().value(u'general/has run wizard',
|
if not QtCore.QSettings().value(u'general/has run wizard',
|
||||||
QtCore.QVariant(False)).toBool():
|
QtCore.QVariant(False)).toBool():
|
||||||
@ -284,5 +286,7 @@ def main(args=None):
|
|||||||
# Do not run method app.exec_() when running gui tests
|
# Do not run method app.exec_() when running gui tests
|
||||||
if options.testing:
|
if options.testing:
|
||||||
app.run(qt_args, testing=True)
|
app.run(qt_args, testing=True)
|
||||||
|
# For gui tests we need access to window intances and their components
|
||||||
|
return app
|
||||||
else:
|
else:
|
||||||
sys.exit(app.run(qt_args))
|
sys.exit(app.run(qt_args))
|
||||||
|
@ -80,6 +80,7 @@ OPTIONAL_MODULES = [
|
|||||||
('sqlite', ' (SQLite 2 support)'),
|
('sqlite', ' (SQLite 2 support)'),
|
||||||
('MySQLdb', ' (MySQL support)'),
|
('MySQLdb', ' (MySQL support)'),
|
||||||
('psycopg2', ' (PostgreSQL support)'),
|
('psycopg2', ' (PostgreSQL support)'),
|
||||||
|
('pytest', ' (testing framework)'),
|
||||||
]
|
]
|
||||||
|
|
||||||
w = sys.stdout.write
|
w = sys.stdout.write
|
||||||
|
Loading…
Reference in New Issue
Block a user