Changeset 53c771e in sasview for src/sas/qtgui/MainWindow/UnitTesting/GuiManagerTest.py
- Timestamp:
- Nov 9, 2017 6:45:20 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:
- dd150ef
- Parents:
- d6b8a1d
- git-author:
- Piotr Rozyczko <rozyczko@…> (11/08/17 07:22:45)
- git-committer:
- Piotr Rozyczko <rozyczko@…> (11/09/17 06:45:20)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow/UnitTesting/GuiManagerTest.py
r7fb471d r53c771e 5 5 import logging 6 6 7 from PyQt4.QtGui import * 8 from PyQt4.QtTest import QTest 9 from PyQt4.QtCore import * 10 from PyQt4.QtWebKit import * 7 from PyQt5.QtGui import * 8 from PyQt5.QtWidgets import * 9 from PyQt5.QtTest import QTest 10 from PyQt5.QtCore import * 11 from PyQt5.QtWebKit import * 11 12 from unittest.mock import MagicMock 12 13 … … 18 19 from sas.qtgui.MainWindow.AboutBox import AboutBox 19 20 from sas.qtgui.MainWindow.WelcomePanel import WelcomePanel 20 from sas.qtgui.Utilities.IPythonWidget import IPythonWidget21 #from sas.qtgui.Utilities.IPythonWidget import IPythonWidget 21 22 22 23 from sas.qtgui.MainWindow.GuiManager import Acknowledgements, GuiManager … … 37 38 38 39 # define workspace for dialogs. 39 self.workspace = Q Workspace(self)40 self.workspace = QMdiArea(self) 40 41 self.setCentralWidget(self.workspace) 41 42 … … 221 222 """ 222 223 # Mock the system file open method 223 QFileDialog.getOpenFileNames = MagicMock(return_value= None)224 QFileDialog.getOpenFileNames = MagicMock(return_value=('','')) 224 225 225 226 # invoke the action … … 234 235 """ 235 236 # Mock the system file open method 236 QFileDialog.getExistingDirectory = MagicMock(return_value= None)237 QFileDialog.getExistingDirectory = MagicMock(return_value=('','')) 237 238 238 239 # invoke the action … … 270 271 271 272 #### HELP #### 272 def testActionDocumentation(self): 273 # test when PyQt5 works with html 274 def notestActionDocumentation(self): 273 275 """ 274 276 Menu Help/Documentation
Note: See TracChangeset
for help on using the changeset viewer.