Changeset 377ade1 in sasview for src/sas/qtgui/Perspectives/Fitting/UnitTesting/FittingWidgetTest.py
- Timestamp:
- Aug 16, 2017 2:44:42 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:
- 0e4d87c
- Parents:
- 38eb433
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/UnitTesting/FittingWidgetTest.py
r8eaa101 r377ade1 98 98 # test the delegate a bit 99 99 delegate = fittingWindow.lstPoly.itemDelegate() 100 self.assertEqual(len(delegate.POLYDISPERSE_FUNCTIONS), 5)100 self.assertEqual(len(delegate.POLYDISPERSE_FUNCTIONS), 4) 101 101 self.assertEqual(delegate.editableParameters(), [2, 3, 4, 5]) 102 102 self.assertEqual(delegate.poly_function, 6) … … 595 595 # Set data 596 596 test_data = Data1D(x=[1,2], y=[1,2]) 597 597 item = QtGui.QStandardItem() 598 updateModelItem(item, [test_data], "test") 598 599 # Force same data into logic 599 self.widget.logic.data = test_data 600 self.widget.data_is_loaded = True 600 self.widget.data = item 601 601 category_index = self.widget.cbCategory.findText("Sphere") 602 602 self.widget.cbCategory.setCurrentIndex(category_index) … … 625 625 626 626 # the fit button changed caption and got disabled 627 self.assertEqual(self.widget.cmdFit.text(), ' Calculating...')627 self.assertEqual(self.widget.cmdFit.text(), 'Running...') 628 628 self.assertFalse(self.widget.cmdFit.isEnabled()) 629 629 … … 644 644 645 645 # Force same data into logic 646 self.widget.logic.data = test_data 647 self.widget.data_is_loaded = True 646 item = QtGui.QStandardItem() 647 updateModelItem(item, [test_data], "test") 648 # Force same data into logic 649 self.widget.data = item 648 650 category_index = self.widget.cbCategory.findText("Sphere") 649 651 self.widget.cbCategory.setCurrentIndex(category_index) … … 672 674 673 675 # the fit button changed caption and got disabled 674 self.assertEqual(self.widget.cmdFit.text(), ' Calculating...')676 self.assertEqual(self.widget.cmdFit.text(), 'Running...') 675 677 self.assertFalse(self.widget.cmdFit.isEnabled()) 676 678
Note: See TracChangeset
for help on using the changeset viewer.