Changeset 9290b1a in sasview for src/sas/qtgui/UnitTesting


Ignore:
Timestamp:
Dec 16, 2016 12:43:18 PM (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:
d3ca363
Parents:
0ba0774
Message:

Added AddText? to plot, enabled legend drag - SASVIEW-378

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

Legend:

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

    r27313b7 r9290b1a  
    157157 
    158158    def testOnWindowsTitle(self): 
    159         ''' test changing the plot title''' 
     159        """ Test changing the plot title""" 
    160160        # Mock the modal dialog's response 
    161161        QtGui.QDialog.exec_ = MagicMock(return_value=QtGui.QDialog.Accepted) 
     
    171171        self.assertEqual(self.plotter.windowTitle(), "I am a new title") 
    172172 
     173    def testOnMplMouseDown(self): 
     174        """ Test what happens on mouse click down in chart """ 
     175        pass 
     176 
     177    def testOnMplMouseUp(self): 
     178        """ Test what happens on mouse release in chart """ 
     179        pass 
     180 
     181    def testOnMplMouseMotion(self): 
     182        """ Test what happens on mouse move in chart """ 
     183        pass 
     184 
     185    def testOnMplPick(self): 
     186        """ Test what happens on mouse pick in chart """ 
     187        pass 
     188 
     189    def testOnMplWheel(self): 
     190        """ Test what happens on mouse pick in chart """ 
     191        pass 
     192 
    173193if __name__ == "__main__": 
    174194    unittest.main() 
  • src/sas/qtgui/UnitTesting/PlotterTest.py

    r27313b7 r9290b1a  
    154154        self.assertEqual(self.plotter.ax.get_ylabel(), "$ \\ \\ ^{4}(()^{4})$") 
    155155 
     156    def testAddText(self): 
     157        """ Checks the functionality of adding text to graph """ 
     158        pass 
     159 
     160    def testOnRemoveText(self): 
     161        """ Cheks if annotations can be removed from the graph """ 
     162        pass 
     163 
     164 
    156165if __name__ == "__main__": 
    157166    unittest.main() 
Note: See TracChangeset for help on using the changeset viewer.