Changeset 0fc37fea in sasview for src/sas/qtgui/UnitTesting


Ignore:
Timestamp:
Aug 11, 2016 5:48:50 AM (8 years ago)
Author:
Piotr Rozyczko <piotr.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:
fb0679b
Parents:
f51ed67
Message:

Added python wrapper for unit testing

File:
1 edited

Legend:

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

    rff49d4d r0fc37fea  
    1313# Local 
    1414from DataExplorer import DataExplorerWindow 
    15 from UI.AcknowledgementsUI import Acknowledgements 
    1615from AboutBox import AboutBox 
    1716from WelcomePanel import WelcomePanel 
    1817from IPythonWidget import IPythonWidget 
    1918 
    20 from GuiManager import GuiManager 
    21 from UI.MainWindowUI import MainWindow 
     19from GuiManager import Acknowledgements, GuiManager 
     20from MainWindow import MainSasViewWindow 
    2221from UnitTesting.TestUtils import QtSignalSpy 
    2322 
     
    2827    def setUp(self): 
    2928        '''Create the tested object''' 
    30         class MainSasViewWindow(MainWindow): 
     29        class MainWindow(MainSasViewWindow): 
    3130            # Main window of the application 
    3231            def __init__(self, reactor, parent=None): 
    33                 super(MainSasViewWindow, self).__init__(parent) 
     32                super(MainWindow, self).__init__(parent) 
    3433         
    3534                # define workspace for dialogs. 
     
    3736                self.setCentralWidget(self.workspace) 
    3837 
    39         self.manager = GuiManager(MainSasViewWindow(None), None) 
     38        self.manager = GuiManager(MainWindow(None), None) 
    4039 
    4140    def tearDown(self): 
Note: See TracChangeset for help on using the changeset viewer.