Changeset fecfe28 in sasview for src/sas/qtgui/UnitTesting
- Timestamp:
- Dec 8, 2016 9:49:50 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:
- 3b7b218
- Parents:
- b4b8589
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/UnitTesting/PlotterTest.py
r416fa8f rfecfe28 44 44 self.assertEqual(self.plotter.yLabel, "$()$") 45 45 46 def testPlot (self):47 """ Look at the plotting """46 def testPlotWithErrors(self): 47 """ Look at the plotting with error bars""" 48 48 self.plotter.data = self.data 49 49 self.plotter.show() 50 50 FigureCanvas.draw = MagicMock() 51 51 52 self.plotter.plot( )52 self.plotter.plot(hide_error=False) 53 53 54 self.assertEqual(self.plotter.ax.get_xscale(), 'log') 55 self.assertTrue(FigureCanvas.draw.called) 56 57 def testPlotWithoutErrors(self): 58 """ Look at the plotting without error bars""" 59 self.plotter.data = self.data 60 self.plotter.show() 61 FigureCanvas.draw = MagicMock() 62 63 self.plotter.plot(hide_error=True) 64 65 self.assertEqual(self.plotter.ax.get_yscale(), 'log') 54 66 self.assertTrue(FigureCanvas.draw.called) 55 67
Note: See TracChangeset
for help on using the changeset viewer.