Ignore:
Timestamp:
Dec 4, 2018 9:22:17 AM (5 years ago)
Author:
wojciech
Branches:
ESS_GUI, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_sync_sascalc
Children:
3801429
Parents:
a8e6394 (diff), 0989bad (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'ESS_GUI' of https://github.com/SasView/sasview into ESS_GUI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/MainWindow/UnitTesting/DataExplorerTest.py

    rb1b71ad r0989bad  
    331331        time.sleep(1) 
    332332        # Unselect all data 
    333         self.form.cbSelect.setCurrentIndex(1) 
    334  
     333        self.form.cbSelect.activated.emit(1) 
    335334        # Test the current selection 
    336335        item1D = self.form.model.item(0) 
     
    341340 
    342341        # Select all data 
    343         self.form.cbSelect.setCurrentIndex(0) 
     342        self.form.cbSelect.activated.emit(0) 
    344343 
    345344        # Test the current selection 
     
    348347 
    349348        # select 1d data 
    350         self.form.cbSelect.setCurrentIndex(2) 
    351  
     349        self.form.cbSelect.activated.emit(2) 
    352350        # Test the current selection 
    353351        self.assertTrue(item1D.checkState() == Qt.Checked) 
     
    355353 
    356354        # unselect 1d data 
    357         self.form.cbSelect.setCurrentIndex(3) 
     355        self.form.cbSelect.activated.emit(3) 
    358356 
    359357        # Test the current selection 
     
    362360 
    363361        # select 2d data 
    364         self.form.cbSelect.setCurrentIndex(4) 
     362        self.form.cbSelect.activated.emit(4) 
    365363 
    366364        # Test the current selection 
     
    369367 
    370368        # unselect 2d data 
    371         self.form.cbSelect.setCurrentIndex(5) 
     369        self.form.cbSelect.activated.emit(5) 
    372370 
    373371        # Test the current selection 
    374372        self.assertTrue(item1D.checkState() == Qt.Unchecked) 
    375373        self.assertTrue(item2D.checkState() == Qt.Unchecked)         
    376  
    377         # choose impossible index and assure the code raises 
    378         #with self.assertRaises(Exception): 
    379         #    self.form.cbSelect.setCurrentIndex(6) 
    380374 
    381375    def testFreezeTheory(self): 
     
    581575 
    582576        # Call the plotting method 
    583         self.form.newPlot() 
    584  
    585         QApplication.processEvents() 
     577        #self.form.newPlot() 
     578        #QApplication.processEvents() 
    586579 
    587580        # The plot was registered 
    588         self.assertEqual(len(PlotHelper.currentPlots()), 1) 
    589  
    590         self.assertTrue(self.form.cbgraph.isEnabled()) 
    591         self.assertTrue(self.form.cmdAppend.isEnabled()) 
     581        #self.assertEqual(len(PlotHelper.currentPlots()), 1) 
     582 
     583        #self.assertTrue(self.form.cbgraph.isEnabled()) 
     584        #self.assertTrue(self.form.cmdAppend.isEnabled()) 
    592585 
    593586    @patch('sas.qtgui.Utilities.GuiUtils.plotsFromCheckedItems') 
Note: See TracChangeset for help on using the changeset viewer.