Ignore:
Timestamp:
Jan 30, 2018 6:00:39 AM (6 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:
5e66738
Parents:
63319b0
Message:

unit test updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Perspectives/Fitting/UnitTesting/MultiConstraintTest.py

    • Property mode changed from 100755 to 100644
    r0595bb7 rda9a0722  
    22import unittest 
    33import numpy as np 
     4import webbrowser 
    45 
    56from unittest.mock import MagicMock 
     
    9899        # log10(    p2    ) +  p2 
    99100        self.assertTrue(self.widget.validateConstraint("log10(    p2    ) +  p2  ")) 
     101 
     102    def testOnHelp(self): 
     103        """ 
     104        Test the default help renderer 
     105        """ 
     106        webbrowser.open = MagicMock() 
     107 
     108        # invoke the tested method 
     109        self.widget.onHelp() 
     110 
     111        # see that webbrowser open was attempted 
     112        webbrowser.open.assert_called_once() 
Note: See TracChangeset for help on using the changeset viewer.