Changeset 3e314e6 in sasview for src/sas/qtgui/Calculators/UnitTesting
- Timestamp:
- Sep 27, 2018 7:57:05 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- bd39d6c
- Parents:
- b6f47be
- Location:
- src/sas/qtgui/Calculators/UnitTesting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Calculators/UnitTesting/GenericScatteringCalculatorTest.py
r30e0be0 r3e314e6 253 253 # TODO to be changed 254 254 self.assertEqual(self.widget.txtData.text(), 'diamdsml.pdb') 255 self.assert Equal(self.widget.txtTotalVolume.text(), '170.950584161')255 self.assertAlmostEqual(float(self.widget.txtTotalVolume.text()), 170.95058, 5) 256 256 self.assertEqual(self.widget.txtNoPixels.text(), '18') 257 257 -
src/sas/qtgui/Calculators/UnitTesting/KiessigCalculatorTest.py
re90988c r3e314e6 75 75 def testComplexEntryLetters(self): 76 76 """ User entered compound calculations and subsequent reset""" 77 77 self.widget.deltaq_in.clear() 78 78 self.widget.deltaq_in.insert("xyz") 79 79 … … 81 81 computeButton = self.widget.computeButton 82 82 QTest.mouseClick(computeButton, Qt.LeftButton) 83 self.assertEqual(self.widget.deltaq_in.text(), '') 83 84 self.assertEqual(self.widget.lengthscale_out.text(), '') 84 85
Note: See TracChangeset
for help on using the changeset viewer.