Ignore:
Timestamp:
Sep 4, 2018 10:19:33 AM (6 years ago)
Author:
Torin Cooper-Bennun <torin.cooper-bennun@…>
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
70f4458
Parents:
c7809a9
Message:

refactor & fix param handling; test fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Perspectives/Fitting/UnitTesting/FittingWidgetTest.py

    r00b7ddf0 rf3a19ad  
    254254        self.widget.cbStructureFactor.setCurrentIndex(structure_index) 
    255255 
    256         # We have 4 more rows now 
    257         self.assertEqual(self.widget._model_model.rowCount(), rowcount+5) 
     256        # We have 3 more param rows now (radius_effective is removed), and a new heading 
     257        self.assertEqual(self.widget._model_model.rowCount(), rowcount+4) 
    258258 
    259259        # Switch models 
     
    274274        last_index = self.widget.cbStructureFactor.count() 
    275275        self.widget.cbStructureFactor.setCurrentIndex(last_index-1) 
    276         # Do we have all the rows? 
     276        # Do we have all the rows (incl. radius_effective & heading row)? 
    277277        self.assertEqual(self.widget._model_model.rowCount(), 5) 
    278278 
Note: See TracChangeset for help on using the changeset viewer.