Ignore:
Timestamp:
Feb 2, 2018 9:21:48 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:
a90c9c5
Parents:
5e66738
Message:

More code review related fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Plotting/UnitTesting/SlicerParametersTest.py

    r53c771e r14ec91c5  
    11import sys 
    22import unittest 
     3import webbrowser 
    34from unittest.mock import MagicMock 
    45 
     
    7273        self.widget.show() 
    7374 
    74         #Mock the QWebView method 
    75         QtWebKit.QWebView.show = MagicMock() 
    76         QtWebKit.QWebView.load = MagicMock() 
     75        #Mock the webbrowser.open method 
     76        webbrowser.open = MagicMock() 
    7777 
    7878        # Invoke the action 
     
    8080 
    8181        # Check if show() got called 
    82         self.assertTrue(QtWebKit.QWebView.show.called) 
     82        self.assertTrue(webbrowser.open.called) 
    8383 
    8484        # Assure the filename is correct 
    85         self.assertIn("graph_help.html", QtWebKit.QWebView.load.call_args[0][0].toString()) 
     85        self.assertIn("graph_help.html", webbrowser.open.call_args[0][0]) 
    8686         
    8787    def testSetModel(self): 
Note: See TracChangeset for help on using the changeset viewer.