Changeset 3e8dee3 in sasview for src/sas/qtgui/Calculators/UnitTesting/KiessigCalculatorTest.py
- Timestamp:
- Nov 8, 2017 9:22:45 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- 0e80658
- Parents:
- 412e069e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Calculators/UnitTesting/KiessigCalculatorTest.py
r464cd07 r3e8dee3 1 1 import sys 2 2 import unittest 3 from PyQt 4 import QtGui4 from PyQt 4.QtTest import QTest5 from PyQt 4.QtCore import Qt3 from PyQt5 import QtGui, QtWidgets 4 from PyQt5.QtTest import QTest 5 from PyQt5.QtCore import Qt 6 6 7 7 # TEMP 8 import sas.qtgui.path_prepare 8 #import sas.qtgui.path_prepare 9 import path_prepare 9 10 10 11 11 12 from sas.qtgui.Calculators.KiessigPanel import KiessigPanel 12 13 13 if not Qt Gui.QApplication.instance():14 app = Qt Gui.QApplication(sys.argv)14 if not QtWidgets.QApplication.instance(): 15 app = QtWidgets.QApplication(sys.argv) 15 16 16 17 … … 28 29 def testDefaults(self): 29 30 """Test the GUI in its default state""" 30 self.assertIsInstance(self.widget, Qt Gui.QWidget)31 self.assertIsInstance(self.widget, QtWidgets.QWidget) 31 32 self.assertEqual(self.widget.windowTitle(), "Kiessig Thickness Calculator") 32 self.assertEqual(self.widget.sizePolicy().Policy(), Qt Gui.QSizePolicy.Fixed)33 self.assertEqual(self.widget.sizePolicy().Policy(), QtWidgets.QSizePolicy.Fixed) 33 34 34 35 def testHelp(self):
Note: See TracChangeset
for help on using the changeset viewer.