Changeset 7c487846 in sasview for src/sas/qtgui/Perspectives/Invariant/UnitTesting/InvariantPerspectiveTest.py
- Timestamp:
- Nov 14, 2017 6:04:41 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:
- fa81e94
- Parents:
- f1f3e6a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Invariant/UnitTesting/InvariantPerspectiveTest.py
rf1f3e6a r7c487846 8 8 from PyQt5.QtTest import QTest 9 9 from PyQt5.QtCore import Qt 10 from mock import MagicMock11 from mock import patch12 from mock import create_autospec10 from unittest.mock import MagicMock 11 from unittest.mock import patch 12 from unittest.mock import create_autospec 13 13 14 14 from twisted.internet import threads … … 23 23 import sas.qtgui.Utilities.GuiUtils as GuiUtils 24 24 25 if not QtWidgets.QApplication.instance():26 25 #if not QtWidgets.QApplication.instance(): 26 app = QtWidgets.QApplication(sys.argv) 27 27 28 28 BG_COLOR_ERR = 'background-color: rgb(244, 170, 164);' … … 142 142 143 143 # Validators 144 self.assertIsInstance(self.widget.txtNptsLowQ.validator(), QtGui.Q RegExpValidator)145 self.assertIsInstance(self.widget.txtNptsHighQ.validator(), QtGui.Q RegExpValidator)146 self.assertIsInstance(self.widget.txtPowerLowQ.validator(), QtGui.QRegExpValidator)147 self.assertIsInstance(self.widget.txtPowerHighQ.validator(), QtGui.QRegExpValidator)148 149 self.assertIsInstance(self.widget.txtBackgd.validator(), QtGui.QDoubleValidator)150 self.assertIsInstance(self.widget.txtContrast.validator(), QtGui.QDoubleValidator)151 self.assertIsInstance(self.widget.txtScale.validator(), QtGui.QDoubleValidator)152 self.assertIsInstance(self.widget.txtPorodCst.validator(), QtGui.QDoubleValidator)144 self.assertIsInstance(self.widget.txtNptsLowQ.validator(), QtGui.QIntValidator) 145 self.assertIsInstance(self.widget.txtNptsHighQ.validator(), QtGui.QIntValidator) 146 self.assertIsInstance(self.widget.txtPowerLowQ.validator(), GuiUtils.DoubleValidator) 147 self.assertIsInstance(self.widget.txtPowerHighQ.validator(), GuiUtils.DoubleValidator) 148 149 self.assertIsInstance(self.widget.txtBackgd.validator(), GuiUtils.DoubleValidator) 150 self.assertIsInstance(self.widget.txtContrast.validator(), GuiUtils.DoubleValidator) 151 self.assertIsInstance(self.widget.txtScale.validator(), GuiUtils.DoubleValidator) 152 self.assertIsInstance(self.widget.txtPorodCst.validator(), GuiUtils.DoubleValidator) 153 153 154 154 # Test autoexclusivity of radiobuttons … … 202 202 # self.assertEqual(self.widget._data.y[1], 4) 203 203 204 def testHelp(self):204 def notestHelp(self): 205 205 """ Assure help file is shown """ 206 206 # this should not rise
Note: See TracChangeset
for help on using the changeset viewer.