Changeset 3e8dee3 in sasview for src/sas/qtgui/Plotting/UnitTesting/BoxSumTest.py
- Timestamp:
- Nov 8, 2017 9:22:45 AM (7 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/Plotting/UnitTesting/BoxSumTest.py
r99ea1b0 r3e8dee3 3 3 from unittest.mock import MagicMock 4 4 5 from PyQt 4 import QtGui6 from PyQt 4import QtCore5 from PyQt5 import QtGui,QtWidgets 6 from PyQt5 import QtCore 7 7 8 8 # set up import paths … … 12 12 from sas.qtgui.Plotting.BoxSum import BoxSum 13 13 14 if not Qt Gui.QApplication.instance():15 app = Qt Gui.QApplication(sys.argv)14 if not QtWidgets.QApplication.instance(): 15 app = QtWidgets.QApplication(sys.argv) 16 16 17 17 class BoxSumTest(unittest.TestCase): … … 33 33 def testDefaults(self): 34 34 '''Test the GUI in its default state''' 35 self.assertIsInstance(self.widget.mapper.mappedWidgetAt(0), Qt Gui.QLineEdit)36 self.assertIsInstance(self.widget.mapper.mappedWidgetAt(1), Qt Gui.QLineEdit)37 self.assertIsInstance(self.widget.mapper.mappedWidgetAt(2), Qt Gui.QLineEdit)38 self.assertIsInstance(self.widget.mapper.mappedWidgetAt(3), Qt Gui.QLineEdit)39 self.assertIsInstance(self.widget.mapper.mappedWidgetAt(4), Qt Gui.QLabel)40 self.assertIsInstance(self.widget.mapper.mappedWidgetAt(5), Qt Gui.QLabel)41 self.assertIsInstance(self.widget.mapper.mappedWidgetAt(6), Qt Gui.QLabel)42 self.assertIsInstance(self.widget.mapper.mappedWidgetAt(7), Qt Gui.QLabel)43 self.assertIsInstance(self.widget.mapper.mappedWidgetAt(8), Qt Gui.QLabel)35 self.assertIsInstance(self.widget.mapper.mappedWidgetAt(0), QtWidgets.QLineEdit) 36 self.assertIsInstance(self.widget.mapper.mappedWidgetAt(1), QtWidgets.QLineEdit) 37 self.assertIsInstance(self.widget.mapper.mappedWidgetAt(2), QtWidgets.QLineEdit) 38 self.assertIsInstance(self.widget.mapper.mappedWidgetAt(3), QtWidgets.QLineEdit) 39 self.assertIsInstance(self.widget.mapper.mappedWidgetAt(4), QtWidgets.QLabel) 40 self.assertIsInstance(self.widget.mapper.mappedWidgetAt(5), QtWidgets.QLabel) 41 self.assertIsInstance(self.widget.mapper.mappedWidgetAt(6), QtWidgets.QLabel) 42 self.assertIsInstance(self.widget.mapper.mappedWidgetAt(7), QtWidgets.QLabel) 43 self.assertIsInstance(self.widget.mapper.mappedWidgetAt(8), QtWidgets.QLabel) 44 44 45 45
Note: See TracChangeset
for help on using the changeset viewer.