Ignore:
Timestamp:
Jun 16, 2017 4:22:23 AM (8 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
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
Message:

Code review changes SASVIEW-597

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Perspectives/Fitting/UnitTesting/FittingOptionsTest.py

    rb0c5e8c r72f4834  
    6161        self.assertIsInstance(self.widget.ftol_de.validator(), QtGui.QDoubleValidator) 
    6262        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()) 
    6377 
    6478    def testOnAlgorithmChange(self): 
Note: See TracChangeset for help on using the changeset viewer.