Changeset 87cc73a in sasview for src/sas/qtgui/UnitTesting
- Timestamp:
- Jan 11, 2017 9:31:58 AM (8 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:
- db5cd8d
- Parents:
- b46f285
- Location:
- src/sas/qtgui/UnitTesting
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/UnitTesting/PlotterTest.py
rb46f285 r87cc73a 13 13 from sas.sasgui.guiframe.dataFitting import Data1D 14 14 from sas.sasgui.guiframe.dataFitting import Data2D 15 from UnitTesting.TestUtils import QtSignalSpy15 from UnitTesting.TestUtils import WarningNotImplemented 16 16 17 17 # Tested module … … 19 19 20 20 app = QtGui.QApplication(sys.argv) 21 21 22 22 23 class PlotterTest(unittest.TestCase): … … 223 224 def testOnLinearFit(self): 224 225 """ Checks the response to LinearFit call """ 225 pass226 WarningNotImplemented(sys._getframe().f_code.co_name) 226 227 227 228 def testOnRemovePlot(self): 228 229 """ Assure plots get removed when requested """ 229 pass230 WarningNotImplemented(sys._getframe().f_code.co_name) 230 231 231 232 def testRemovePlot(self): 232 233 """ Test plot removal """ 233 pass234 WarningNotImplemented(sys._getframe().f_code.co_name) 234 235 235 236 def testOnToggleHideError(self): 236 237 """ Test the error bar toggle on plots """ 237 pass238 WarningNotImplemented(sys._getframe().f_code.co_name) 238 239 239 240 def testOnFitDisplay(self): 240 241 """ Test the fit line display on the chart """ 241 pass 242 WarningNotImplemented(sys._getframe().f_code.co_name) 243 244 def testReplacePlot(self): 245 """ Test the plot refresh functionality """ 246 WarningNotImplemented(sys._getframe().f_code.co_name) 247 248 def testReplacePlot(self): 249 """ Test the plot refresh functionality """ 250 WarningNotImplemented(sys._getframe().f_code.co_name) 251 252 def testOnModifyPlot(self): 253 """ Test the functionality for changing plot properties """ 254 WarningNotImplemented(sys._getframe().f_code.co_name) 242 255 243 256 if __name__ == "__main__": -
src/sas/qtgui/UnitTesting/TestUtils.py
- Property mode changed from 100755 to 100644
r5032ea68 r87cc73a 2 2 from PyQt4.QtGui import * 3 3 from PyQt4.QtTest import * 4 5 def WarningNotImplemented(method_name): 6 """ Prints warning about a non-implemented test """ 7 print("\nWARNING: %s needs implementing!"%method_name) 4 8 5 9 class QtSignalSpy(QObject):
Note: See TracChangeset
for help on using the changeset viewer.