Changeset 72f4834 in sasview for src/sas/qtgui/Perspectives/Fitting/UnitTesting/FittingOptionsTest.py
- Timestamp:
- Jun 16, 2017 4:22:23 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:
- 85487ebd
- Parents:
- b0c5e8c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/UnitTesting/FittingOptionsTest.py
rb0c5e8c r72f4834 61 61 self.assertIsInstance(self.widget.ftol_de.validator(), QtGui.QDoubleValidator) 62 62 self.assertIsInstance(self.widget.xtol_de.validator(), QtGui.QDoubleValidator) 63 64 # bottom value for floats and ints 65 self.assertEqual(self.widget.steps_de.validator().bottom(), 0) 66 self.assertEqual(self.widget.CR_de.validator().bottom(), 0) 67 68 # Behaviour on empty cell 69 self.widget.onAlgorithmChange(3) 70 self.widget.steps_de.setText("") 71 # This should disable the OK button 72 self.assertFalse(self.widget.buttonBox.button(QtGui.QDialogButtonBox.Ok).isEnabled()) 73 # Let's put some valid value in lineedit 74 self.widget.steps_de.setText("1") 75 # This should enable the OK button 76 self.assertTrue(self.widget.buttonBox.button(QtGui.QDialogButtonBox.Ok).isEnabled()) 63 77 64 78 def testOnAlgorithmChange(self):
Note: See TracChangeset
for help on using the changeset viewer.