Changeset 87cc73a in sasview for src/sas/qtgui/UnitTesting


Ignore:
Timestamp:
Jan 11, 2017 9:31:58 AM (8 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:
db5cd8d
Parents:
b46f285
Message:

Added Modify Plot Properties functionality. SASVIEW-169

Location:
src/sas/qtgui/UnitTesting
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/UnitTesting/PlotterTest.py

    rb46f285 r87cc73a  
    1313from sas.sasgui.guiframe.dataFitting import Data1D 
    1414from sas.sasgui.guiframe.dataFitting import Data2D 
    15 from UnitTesting.TestUtils import QtSignalSpy 
     15from UnitTesting.TestUtils import WarningNotImplemented 
    1616 
    1717# Tested module 
     
    1919 
    2020app = QtGui.QApplication(sys.argv) 
     21 
    2122 
    2223class PlotterTest(unittest.TestCase): 
     
    223224    def testOnLinearFit(self): 
    224225        """ Checks the response to LinearFit call """ 
    225         pass 
     226        WarningNotImplemented(sys._getframe().f_code.co_name) 
    226227 
    227228    def testOnRemovePlot(self): 
    228229        """ Assure plots get removed when requested """ 
    229         pass 
     230        WarningNotImplemented(sys._getframe().f_code.co_name) 
    230231 
    231232    def testRemovePlot(self): 
    232233        """ Test plot removal """ 
    233         pass 
     234        WarningNotImplemented(sys._getframe().f_code.co_name) 
    234235 
    235236    def testOnToggleHideError(self): 
    236237        """ Test the error bar toggle on plots """ 
    237         pass 
     238        WarningNotImplemented(sys._getframe().f_code.co_name) 
    238239 
    239240    def testOnFitDisplay(self): 
    240241        """ 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) 
    242255 
    243256if __name__ == "__main__": 
  • src/sas/qtgui/UnitTesting/TestUtils.py

    • Property mode changed from 100755 to 100644
    r5032ea68 r87cc73a  
    22from PyQt4.QtGui import * 
    33from PyQt4.QtTest import * 
     4 
     5def WarningNotImplemented(method_name): 
     6    """ Prints warning about a non-implemented test """ 
     7    print("\nWARNING: %s needs implementing!"%method_name) 
    48 
    59class QtSignalSpy(QObject): 
Note: See TracChangeset for help on using the changeset viewer.