Ignore:
Timestamp:
Sep 5, 2017 4:18:07 AM (7 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
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
Message:

SASVIEW-625: code review fixes. Corrected handling for cancelling the file open dialog, updated test cases.

File:
1 edited

Legend:

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

    r464cd07 r8222f171  
    9999        # test the delegate a bit 
    100100        delegate = fittingWindow.lstPoly.itemDelegate() 
    101         self.assertEqual(len(delegate.POLYDISPERSE_FUNCTIONS), 4) 
     101        self.assertEqual(len(delegate.POLYDISPERSE_FUNCTIONS), 5) 
    102102        self.assertEqual(delegate.editableParameters(), [2, 3, 4, 5]) 
    103103        self.assertEqual(delegate.poly_function, 6) 
     
    337337        # Check the poly model 
    338338        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) 
    340340 
    341341        # Test the header 
    342         self.assertEqual(self.widget.lstPoly.horizontalHeader().count(), 7) 
     342        self.assertEqual(self.widget.lstPoly.horizontalHeader().count(), 8) 
    343343        self.assertFalse(self.widget.lstPoly.horizontalHeader().stretchLastSection()) 
    344344 
     
    346346        for row in xrange(self.widget._poly_model.rowCount()): 
    347347            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)) 
    349349            self.assertIn('Distribution of', self.widget._poly_model.item(row, 0).text()) 
    350350        #self.widget.close() 
Note: See TracChangeset for help on using the changeset viewer.