Changeset 53c771e in sasview for src/sas/qtgui/Calculators/UnitTesting/DataOperationUtilityTest.py
- Timestamp:
- Nov 9, 2017 6: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 07:22:45)
- git-committer:
- Piotr Rozyczko <rozyczko@…> (11/09/17 06:45:20)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Calculators/UnitTesting/DataOperationUtilityTest.py
r7fb471d r53c771e 4 4 import logging 5 5 import unittest 6 from PyQt 4 import QtGui7 from PyQt 4import QtCore8 from PyQt 4.QtTest import QTest9 from PyQt 4.QtCore import Qt6 from PyQt5 import QtGui, QtWidgets 7 from PyQt5 import QtCore 8 from PyQt5.QtTest import QTest 9 from PyQt5.QtCore import Qt 10 10 from unittest.mock import MagicMock 11 11 from unittest.mock import patch … … 19 19 from sas.qtgui.MainWindow.DataState import DataState 20 20 21 if not Qt Gui.QApplication.instance():22 app = Qt Gui.QApplication(sys.argv)21 if not QtWidgets.QApplication.instance(): 22 app = QtWidgets.QApplication(sys.argv) 23 23 24 24 BG_COLOR_ERR = 'background-color: rgb(244, 170, 164);' … … 43 43 """Test the GUI in its default state""" 44 44 45 self.assertIsInstance(self.widget, Qt Gui.QDialog)45 self.assertIsInstance(self.widget, QtWidgets.QDialog) 46 46 47 47 self.assertEqual(self.widget.windowTitle(), "Data Operation") … … 98 98 self.assertFalse(self.widget.txtNumber.isEnabled()) 99 99 100 self.assertIsInstance(self.widget.layoutOutput,Qt Gui.QHBoxLayout)101 self.assertIsInstance(self.widget.layoutData1,Qt Gui.QHBoxLayout)102 self.assertIsInstance(self.widget.layoutData2,Qt Gui.QHBoxLayout)100 self.assertIsInstance(self.widget.layoutOutput,QtWidgets.QHBoxLayout) 101 self.assertIsInstance(self.widget.layoutData1,QtWidgets.QHBoxLayout) 102 self.assertIsInstance(self.widget.layoutData2,QtWidgets.QHBoxLayout) 103 103 104 104 # To store input datafiles
Note: See TracChangeset
for help on using the changeset viewer.