Changeset 99ea1b0 in sasview for src/sas/qtgui/MainWindow/UnitTesting/GuiManagerTest.py
- Timestamp:
- Oct 27, 2017 8:49:35 AM (7 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow/UnitTesting/GuiManagerTest.py
- Property mode changed from 100644 to 100755
r8222f171 r99ea1b0 9 9 from PyQt4.QtCore import * 10 10 from PyQt4.QtWebKit import * 11 from mock import MagicMock11 from unittest.mock import MagicMock 12 12 13 13 # set up import paths … … 74 74 # We are in the MainWindow scope, so simple 'print' will work 75 75 message = "from stdout" 76 print message76 print(message) 77 77 self.assertIn(message, self.manager.logDockWidget.widget().toPlainText()) 78 78 … … 162 162 """ 163 163 # 1. version = 0.0.0 164 version_info = { u'version' : u'0.0.0'}164 version_info = {'version' : '0.0.0'} 165 165 spy_status_update = QtSignalSpy(self.manager, self.manager.communicate.statusBarUpdateSignal) 166 166 … … 172 172 173 173 # 2. version < LocalConfig.__version__ 174 version_info = { u'version' : u'0.0.1'}174 version_info = {'version' : '0.0.1'} 175 175 spy_status_update = QtSignalSpy(self.manager, self.manager.communicate.statusBarUpdateSignal) 176 176 … … 182 182 183 183 # 3. version > LocalConfig.__version__ 184 version_info = { u'version' : u'999.0.0'}184 version_info = {'version' : '999.0.0'} 185 185 spy_status_update = QtSignalSpy(self.manager, self.manager.communicate.statusBarUpdateSignal) 186 186 webbrowser.open = MagicMock()
Note: See TracChangeset
for help on using the changeset viewer.