Changeset f4a1433 in sasview for src/sas/qtgui/Calculators/UnitTesting
- Timestamp:
- Oct 24, 2017 2:44:26 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:
- fca1f50, d6b234b
- Parents:
- 16afe01 (diff), 5582b078 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Location:
- src/sas/qtgui/Calculators/UnitTesting
- Files:
-
- 5 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Calculators/UnitTesting/GenericScatteringCalculatorTest.py
r464cd07 rf4a1433 305 305 self.widget.loadFile() 306 306 self.assertEqual(self.widget.cmdLoad.text(), 'Loading...') 307 time.sleep( 1)307 time.sleep(2) 308 308 309 309 self.assertEqual(self.widget.txtData.text(), 'A_Raw_Example-1.omf') … … 377 377 self.assertFalse(self.widget.cmdCompute.isEnabled()) 378 378 379 self.widget.complete([numpy.ones(1), numpy.zeros(1), numpy.zeros(1)], update=None)380 self.assertEqual(self.widget.cmdCompute.text(), 'Compute')381 self.assertTrue(self.widget.cmdCompute.isEnabled())379 #self.widget.complete([numpy.ones(1), numpy.zeros(1), numpy.zeros(1)], update=None) 380 #self.assertEqual(self.widget.cmdCompute.text(), 'Compute') 381 #self.assertTrue(self.widget.cmdCompute.isEnabled()) 382 382 383 383 # TODO -
src/sas/qtgui/Calculators/UnitTesting/SLDCalculatorTest.py
r464cd07 rf4a1433 98 98 99 99 # Assure the output fields are set 100 self.assertEqual(self.widget.ui.editNeutronIncXs.text(), '5. 37')100 self.assertEqual(self.widget.ui.editNeutronIncXs.text(), '5.62') 101 101 102 102 # Change mass density … … 128 128 129 129 # Assure the mass density field is set 130 self.assertEqual(self.widget.ui.editNeutronIncXs.text(), '4 0.6')130 self.assertEqual(self.widget.ui.editNeutronIncXs.text(), '43.4') 131 131 132 132 # Reset the widget -
src/sas/qtgui/Calculators/UnitTesting/SlitSizeCalculatorTest.py
r8222f171 rf4a1433 71 71 filename = "beam_profile.DAT" 72 72 loader = Loader() 73 data = loader.load(filename) 73 data = loader.load(filename)[0] 74 74 75 75 self.widget.calculateSlitSize(data) … … 81 81 """ Test on wrong input data """ 82 82 83 filename = " Dec07031.ASC"83 filename = "P123_D2O_10_percent.dat" 84 84 loader = Loader() 85 data = loader.load(filename) 85 data = loader.load(filename)[0] 86 86 self.assertRaisesRegexp(RuntimeError, 87 87 "Slit Length cannot be computed for 2D Data",
Note: See TracChangeset
for help on using the changeset viewer.