Changeset da9a0722 in sasview for src/sas/qtgui/Perspectives/Fitting/UnitTesting
- Timestamp:
- Jan 30, 2018 8:00:39 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:
- 5e66738
- Parents:
- 63319b0
- Location:
- src/sas/qtgui/Perspectives/Fitting/UnitTesting
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/UnitTesting/MultiConstraintTest.py
- Property mode changed from 100755 to 100644
r0595bb7 rda9a0722 2 2 import unittest 3 3 import numpy as np 4 import webbrowser 4 5 5 6 from unittest.mock import MagicMock … … 98 99 # log10( p2 ) + p2 99 100 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.