Ignore:
Timestamp:
Oct 19, 2017 9:55:59 AM (7 years ago)
Author:
celinedurniak <celine.durniak@…>
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:
1420066
Parents:
f0bb711
Message:

Corrected Data Operation Panel: disabling compute button when incompatible data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Calculators/UnitTesting/DataOperationUtilityTest.py

    rd5c5d3d r0c468bf  
    135135 
    136136 
    137     # @patch('DataOperationUtilityPanel.') 
    138137    def testOnCompute(self): 
    139138        """ Test onCompute function """ 
     
    163162 
    164163        self.assertTrue(self.widget.onPrepareOutputData.called_once()) 
    165  
    166         # GuiManager.updateModelFromDataOperationPanel 
    167164 
    168165    def testOnSelectData1(self): 
     
    283280    def testCheckChosenData(self): 
    284281        """ Test check of data compatibility """ 
     282        # set the 2 following to True since we want to check 
     283        # the compatibility of dimensions 
     284        self.widget.data1OK = True 
     285        self.widget.data2OK = True 
     286 
    285287        # Case 1: incompatible dimensions 
    286288        self.widget.data1 = Data1D(x=[1.0, 2.0, 3.0], y=[11.0, 12.0, 13.0], 
Note: See TracChangeset for help on using the changeset viewer.