diff options
Diffstat (limited to 'autotests/pythontest.py')
| -rw-r--r-- | autotests/pythontest.py | 28 | 
1 files changed, 28 insertions, 0 deletions
| diff --git a/autotests/pythontest.py b/autotests/pythontest.py new file mode 100644 index 00000000..2a51ed44 --- /dev/null +++ b/autotests/pythontest.py @@ -0,0 +1,28 @@ +#!/usr/bin/env python +#-*- coding: utf-8 -*- + +from __future__ import print_function + +import sys + +sys.path.append(sys.argv[1]) + +from PyQt5 import QtCore +from PyQt5 import QtGui +from PyQt5 import QtWidgets + +from PyKF5 import KConfigCore +from PyKF5 import KConfigGui + +def main(): +    app = QtWidgets.QApplication(sys.argv) + +    kcg = KConfigCore.KConfigGroup(); + +    assert(not kcg.isValid()) + +    sc = KConfigGui.KStandardShortcut.open() +    assert(sc == [QtGui.QKeySequence("CTRL+O")]) + +if __name__ == '__main__': +    sys.exit(main()) | 
