Changeset e90988c in sasview for src/sas/qtgui/Calculators/UnitTesting/KiessigCalculatorTest.py
- Timestamp:
- Dec 14, 2017 9:51:02 AM (6 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:
- 7fd20fc, 626c7c5
- Parents:
- 8353d90
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Calculators/UnitTesting/KiessigCalculatorTest.py
r53c771e re90988c 5 5 from PyQt5.QtCore import Qt 6 6 7 # TEMP8 #import sas.qtgui.path_prepare9 7 import path_prepare 10 8 from unittest.mock import MagicMock 11 9 12 10 from sas.qtgui.Calculators.KiessigPanel import KiessigPanel … … 35 33 def testHelp(self): 36 34 """ Assure help file is shown """ 37 38 # this should not rise35 self.widget.manager = QtWidgets.QWidget() 36 self.widget.manager.showHelp = MagicMock() 39 37 self.widget.onHelp() 38 self.assertTrue(self.widget.manager.showHelp.called_once()) 39 args = self.widget.manager.showHelp.call_args 40 self.assertIn('kiessig_calculator_help.html', args[0][0]) 40 41 41 42 def testComplexEntryNumbers(self):
Note: See TracChangeset
for help on using the changeset viewer.