Add unittest for QInputDialog.getXXX() methods
This commit is contained in:
parent
9f47f21742
commit
65f6f78008
1 changed files with 25 additions and 0 deletions
25
tests/qtgui/qinputdialog_get_test.py
Normal file
25
tests/qtgui/qinputdialog_get_test.py
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from PySide import QtCore, QtGui
|
||||||
|
from helper import UsesQApplication, TimedQApplication
|
||||||
|
|
||||||
|
class TestInputDialog(TimedQApplication):
|
||||||
|
|
||||||
|
def testGetDouble(self):
|
||||||
|
QtGui.QInputDialog.getDouble(None, "title", "label")
|
||||||
|
|
||||||
|
def testGetInt(self):
|
||||||
|
QtGui.QInputDialog.getInt(None, "title", "label")
|
||||||
|
|
||||||
|
def testGetInteger(self):
|
||||||
|
QtGui.QInputDialog.getInteger(None, "title", "label")
|
||||||
|
|
||||||
|
def testGetItem(self):
|
||||||
|
QtGui.QInputDialog.getItem(None, "title", "label", QtCore.QStringList(["1", "2", "3"]))
|
||||||
|
|
||||||
|
def testGetText(self):
|
||||||
|
QtGui.QInputDialog.getText(None, "title", "label")
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue