Changeset 53c771e in sasview for src/sas/qtgui/Perspectives/Fitting/UnitTesting/FittingPerspectiveTest.py
- Timestamp:
- Nov 9, 2017 8:45:20 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:
- dd150ef
- Parents:
- d6b8a1d
- git-author:
- Piotr Rozyczko <rozyczko@…> (11/08/17 09:22:45)
- git-committer:
- Piotr Rozyczko <rozyczko@…> (11/09/17 08:45:20)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/UnitTesting/FittingPerspectiveTest.py
r7fb471d r53c771e 3 3 import webbrowser 4 4 5 from PyQt4 import QtGui 6 from PyQt4 import QtTest 7 from PyQt4 import QtCore 5 from PyQt5 import QtGui 6 from PyQt5 import QtWidgets 7 from PyQt5 import QtTest 8 from PyQt5 import QtCore 8 9 from unittest.mock import MagicMock 9 10 … … 16 17 from sas.qtgui.Perspectives.Fitting.FittingPerspective import FittingWindow 17 18 18 if not Qt Gui.QApplication.instance():19 app = Qt Gui.QApplication(sys.argv)19 if not QtWidgets.QApplication.instance(): 20 app = QtWidgets.QApplication(sys.argv) 20 21 21 22 class FittingPerspectiveTest(unittest.TestCase): … … 38 39 def testDefaults(self): 39 40 '''Test the GUI in its default state''' 40 self.assertIsInstance(self.widget, Qt Gui.QWidget)41 self.assertIsInstance(self.widget, QtWidgets.QWidget) 41 42 self.assertIn("Fit panel", self.widget.windowTitle()) 42 43 self.assertEqual(self.widget.optimizer, "Levenberg-Marquardt")
Note: See TracChangeset
for help on using the changeset viewer.