Changeset 8222f171 in sasview for src/sas/qtgui/Perspectives/Fitting/UnitTesting/FittingWidgetTest.py
- Timestamp:
- Sep 5, 2017 4:18:07 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:
- 9909967
- Parents:
- 4d1eff2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/UnitTesting/FittingWidgetTest.py
r464cd07 r8222f171 99 99 # test the delegate a bit 100 100 delegate = fittingWindow.lstPoly.itemDelegate() 101 self.assertEqual(len(delegate.POLYDISPERSE_FUNCTIONS), 4)101 self.assertEqual(len(delegate.POLYDISPERSE_FUNCTIONS), 5) 102 102 self.assertEqual(delegate.editableParameters(), [2, 3, 4, 5]) 103 103 self.assertEqual(delegate.poly_function, 6) … … 337 337 # Check the poly model 338 338 self.assertEqual(self.widget._poly_model.rowCount(), 4) 339 self.assertEqual(self.widget._poly_model.columnCount(), 7)339 self.assertEqual(self.widget._poly_model.columnCount(), 8) 340 340 341 341 # Test the header 342 self.assertEqual(self.widget.lstPoly.horizontalHeader().count(), 7)342 self.assertEqual(self.widget.lstPoly.horizontalHeader().count(), 8) 343 343 self.assertFalse(self.widget.lstPoly.horizontalHeader().stretchLastSection()) 344 344 … … 346 346 for row in xrange(self.widget._poly_model.rowCount()): 347 347 func_index = self.widget._poly_model.index(row, 6) 348 #self.assertTrue(isinstance(self.widget.lstPoly.indexWidget(func_index), QtGui.QComboBox))348 self.assertTrue(isinstance(self.widget.lstPoly.indexWidget(func_index), QtGui.QComboBox)) 349 349 self.assertIn('Distribution of', self.widget._poly_model.item(row, 0).text()) 350 350 #self.widget.close()
Note: See TracChangeset
for help on using the changeset viewer.