Changeset 9934e48 in sasview
- Timestamp:
- Mar 24, 2017 1:21:15 AM (8 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:
- a0f5c36
- Parents:
- b1e36a3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/UnitTesting/FittingWidgetTest.py
rb1e36a3 r9934e48 165 165 166 166 # invoke the method by changing the index 167 category_index = self.widget.cbCategory.findText("Shape -Independent")167 category_index = self.widget.cbCategory.findText("Shape Independent") 168 168 self.widget.cbCategory.setCurrentIndex(category_index) 169 169 … … 175 175 176 176 # Observe no such luck 177 self.assertEqual(self.widget.cbCategory.currentIndex(), 1)177 self.assertEqual(self.widget.cbCategory.currentIndex(), 6) 178 178 self.assertEqual(self.widget.cbModel.count(), 29) 179 179 … … 191 191 self.widget.show() 192 192 # Change the category index so we have some models 193 category_index = self.widget.cbCategory.findText("Shape -Independent")193 category_index = self.widget.cbCategory.findText("Shape Independent") 194 194 self.widget.cbCategory.setCurrentIndex(category_index) 195 195 … … 208 208 # Now change the model 209 209 self.widget.cbModel.setCurrentIndex(3) 210 self.assertEqual(self.widget.cbModel.currentText(),' correlation_length')210 self.assertEqual(self.widget.cbModel.currentText(),'dab') 211 211 212 212 # No data sent -> no index set, only createDefaultDataset called … … 219 219 # Reset the sasmodel index 220 220 self.widget.cbModel.setCurrentIndex(1) 221 self.assertEqual(self.widget.cbModel.currentText(),'b e_polyelectrolyte')221 self.assertEqual(self.widget.cbModel.currentText(),'broad_peak') 222 222 223 223 # Observe calculateQGridForModel called … … 230 230 self.widget.show() 231 231 # Change the category index so we have some models 232 category_index = self.widget.cbCategory.findText("Shape -Independent")232 category_index = self.widget.cbCategory.findText("Shape Independent") 233 233 self.widget.cbCategory.setCurrentIndex(category_index) 234 234 # Change the model to one that supports structure factors … … 331 331 self.widget.show() 332 332 # Change the category index so we have a model with no poly 333 category_index = self.widget.cbCategory.findText("Shape -Independent")333 category_index = self.widget.cbCategory.findText("Shape Independent") 334 334 self.widget.cbCategory.setCurrentIndex(category_index) 335 335 # Check the poly model … … 341 341 342 342 # Check the poly model 343 self.assertEqual(self.widget._poly_model.rowCount(), 3)343 self.assertEqual(self.widget._poly_model.rowCount(), 4) 344 344 self.assertEqual(self.widget._poly_model.columnCount(), 7) 345 345 … … 360 360 self.widget.show() 361 361 # Change the category index so we have a model available 362 category_index = self.widget.cbCategory.findText("S hapes")362 category_index = self.widget.cbCategory.findText("Sphere") 363 363 self.widget.cbCategory.setCurrentIndex(category_index) 364 364 … … 389 389 self.widget.show() 390 390 # Change the model to multi shell 391 category_index = self.widget.cbCategory.findText("S hapes")391 category_index = self.widget.cbCategory.findText("Sphere") 392 392 self.widget.cbCategory.setCurrentIndex(category_index) 393 393 model_index = self.widget.cbModel.findText("core_multi_shell")
Note: See TracChangeset
for help on using the changeset viewer.