aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/QtWidgets/qinputdialog_get_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/tests/QtWidgets/qinputdialog_get_test.py')
-rw-r--r--sources/pyside6/tests/QtWidgets/qinputdialog_get_test.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/sources/pyside6/tests/QtWidgets/qinputdialog_get_test.py b/sources/pyside6/tests/QtWidgets/qinputdialog_get_test.py
index f71434126..df3307d77 100644
--- a/sources/pyside6/tests/QtWidgets/qinputdialog_get_test.py
+++ b/sources/pyside6/tests/QtWidgets/qinputdialog_get_test.py
@@ -35,23 +35,24 @@ sys.path.append(os.fspath(Path(__file__).resolve().parents[1]))
from init_paths import init_test_paths
init_test_paths(False)
-from PySide6 import QtCore, QtWidgets
+from PySide6.QtWidgets import QInputDialog
from helper.timedqapplication import TimedQApplication
+
class TestInputDialog(TimedQApplication):
def testGetDouble(self):
- self.assertEqual(QtWidgets.QInputDialog.getDouble(None, "title", "label"), (0.0, False))
+ self.assertEqual(QInputDialog.getDouble(None, "title", "label"), (0.0, False))
def testGetInt(self):
- self.assertEqual(QtWidgets.QInputDialog.getInt(None, "title", "label"), (0, False))
+ self.assertEqual(QInputDialog.getInt(None, "title", "label"), (0, False))
def testGetItem(self):
- (item, bool) = QtWidgets.QInputDialog.getItem(None, "title", "label", ["1", "2", "3"])
+ (item, bool) = QInputDialog.getItem(None, "title", "label", ["1", "2", "3"])
self.assertEqual(str(item), "1")
def testGetText(self):
- (text, bool) = QtWidgets.QInputDialog.getText(None, "title", "label")
+ (text, bool) = QInputDialog.getText(None, "title", "label")
self.assertEqual(str(text),"")
if __name__ == '__main__':