Changeset 14ec91c5 in sasview for src/sas/qtgui/MainWindow/UnitTesting
- Timestamp:
- Feb 2, 2018 9:21:48 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:
- a90c9c5
- Parents:
- 5e66738
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow/UnitTesting/GuiManagerTest.py
r8353d90 r14ec91c5 272 272 #### HELP #### 273 273 # test when PyQt5 works with html 274 def notestActionDocumentation(self):274 def testActionDocumentation(self): 275 275 """ 276 276 Menu Help/Documentation 277 277 """ 278 #Mock the QWebView method 279 QWebView.show = MagicMock() 280 281 # Assure the filename is correct 282 self.assertIn("index.html", self.manager._helpLocation) 278 webbrowser.open = MagicMock() 283 279 284 280 # Invoke the action 285 281 self.manager.actionDocumentation() 286 282 287 # Check if show() got called 288 self.assertTrue(QWebView.show.called) 283 # see that webbrowser open was attempted 284 webbrowser.open.assert_called_once() 285 289 286 290 287 def skip_testActionTutorial(self):
Note: See TracChangeset
for help on using the changeset viewer.