Changeset aadf0af1 in sasview for src/sas/qtgui/UnitTesting
- Timestamp:
- Jan 4, 2017 4:35:08 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:
- 570a58f9
- Parents:
- 257bd57
- Location:
- src/sas/qtgui/UnitTesting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/UnitTesting/PlotterBaseTest.py
r9290b1a raadf0af1 33 33 return MyPerspective() 34 34 35 PlotterBase.PlotterBase.contextMenuQuickPlot = MagicMock()35 #PlotterBase.PlotterBase.contextMenuQuickPlot = MagicMock() 36 36 self.plotter = PlotterBase.PlotterBase(None, manager=dummy_manager(), quickplot=True) 37 37 … … 64 64 ''' Test the default context menu ''' 65 65 with self.assertRaises(NotImplementedError): 66 self.plotter.c ontextMenu()66 self.plotter.createContextMenu() 67 67 68 68 def testClean(self): -
src/sas/qtgui/UnitTesting/PlotterTest.py
r257bd57 raadf0af1 31 31 dy=[0.1, 0.2, 0.3]) 32 32 self.data.title="Test data" 33 self.data.name="Test name" 33 34 self.data.id = 1 34 35 … … 42 43 43 44 self.assertEqual(self.plotter.data, self.data) 44 self.assertEqual(self.plotter._title, self.data. title)45 self.assertEqual(self.plotter._title, self.data.name) 45 46 self.assertEqual(self.plotter.xLabel, "$()$") 46 47 self.assertEqual(self.plotter.yLabel, "$()$") … … 70 71 def testContextMenuQuickPlot(self): 71 72 """ Test the right click menu """ 73 self.plotter.createContextMenuQuick() 72 74 actions = self.plotter.contextMenu.actions() 73 75 self.assertEqual(len(actions), 7)
Note: See TracChangeset
for help on using the changeset viewer.