Changeset 144fe21 in sasview for src/sas/qtgui/MainWindow


Ignore:
Timestamp:
Jul 26, 2018 5:30:15 AM (6 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
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:
dc71408
Parents:
e793f62
git-author:
Piotr Rozyczko <rozyczko@…> (07/26/18 05:28:51)
git-committer:
Piotr Rozyczko <rozyczko@…> (07/26/18 05:30:15)
Message:

new unit test runner script + test fixes. SASVIEW-970

File:
1 edited

Legend:

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

    r725d9c06 r144fe21  
    251251 
    252252        # Check the initial state 
     253        self.assertFalse(self.manager._workspace.toolBar.isVisible()) 
     254        self.assertEqual('Show Toolbar', self.manager._workspace.actionHide_Toolbar.text()) 
     255 
     256        # Invoke action 
     257        self.manager.actionHide_Toolbar() 
     258 
     259        # Assure changes propagated correctly 
    253260        self.assertTrue(self.manager._workspace.toolBar.isVisible()) 
    254261        self.assertEqual('Hide Toolbar', self.manager._workspace.actionHide_Toolbar.text()) 
    255262 
    256         # Invoke action 
     263        # Revert 
    257264        self.manager.actionHide_Toolbar() 
    258265 
    259         # Assure changes propagated correctly 
     266        # Assure the original values are back 
    260267        self.assertFalse(self.manager._workspace.toolBar.isVisible()) 
    261268        self.assertEqual('Show Toolbar', self.manager._workspace.actionHide_Toolbar.text()) 
    262  
    263         # Revert 
    264         self.manager.actionHide_Toolbar() 
    265  
    266         # Assure the original values are back 
    267         self.assertTrue(self.manager._workspace.toolBar.isVisible()) 
    268         self.assertEqual('Hide Toolbar', self.manager._workspace.actionHide_Toolbar.text()) 
    269269 
    270270 
Note: See TracChangeset for help on using the changeset viewer.