Ignore:
Timestamp:
Oct 27, 2017 8:49:35 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:
0849aec
Parents:
895e7359
Message:

Update for unit tests and minor functionality quirks

File:
1 edited

Legend:

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

    • Property mode changed from 100644 to 100755
    r8222f171 r99ea1b0  
    99from PyQt4.QtCore import * 
    1010from PyQt4.QtWebKit import * 
    11 from mock import MagicMock 
     11from unittest.mock import MagicMock 
    1212 
    1313# set up import paths 
     
    7474        # We are in the MainWindow scope, so simple 'print' will work 
    7575        message = "from stdout" 
    76         print message 
     76        print(message) 
    7777        self.assertIn(message, self.manager.logDockWidget.widget().toPlainText()) 
    7878 
     
    162162        """ 
    163163        # 1. version = 0.0.0 
    164         version_info = {u'version' : u'0.0.0'} 
     164        version_info = {'version' : '0.0.0'} 
    165165        spy_status_update = QtSignalSpy(self.manager, self.manager.communicate.statusBarUpdateSignal) 
    166166 
     
    172172 
    173173        # 2. version < LocalConfig.__version__ 
    174         version_info = {u'version' : u'0.0.1'} 
     174        version_info = {'version' : '0.0.1'} 
    175175        spy_status_update = QtSignalSpy(self.manager, self.manager.communicate.statusBarUpdateSignal) 
    176176 
     
    182182 
    183183        # 3. version > LocalConfig.__version__ 
    184         version_info = {u'version' : u'999.0.0'} 
     184        version_info = {'version' : '999.0.0'} 
    185185        spy_status_update = QtSignalSpy(self.manager, self.manager.communicate.statusBarUpdateSignal) 
    186186        webbrowser.open = MagicMock() 
Note: See TracChangeset for help on using the changeset viewer.