Changes in src/sas/qtgui/Plotting/UnitTesting/PlotterTest.py [53c771e:3e8dee3] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Plotting/UnitTesting/PlotterTest.py
r53c771e r3e8dee3 77 77 self.assertTrue(FigureCanvas.draw_idle.called) 78 78 self.plotter.figure.clf() 79 80 def testPlotWithSesans(self):81 """ Ensure that Sesans data is plotted in linear cooredinates"""82 data = Data1D(x=[1.0, 2.0, 3.0],83 y=[10.0, 11.0, 12.0],84 dx=[0.1, 0.2, 0.3],85 dy=[0.1, 0.2, 0.3])86 data.title = "Sesans data"87 data.name = "Test Sesans"88 data.isSesans = True89 data.id = 290 91 self.plotter.data = data92 self.plotter.show()93 FigureCanvas.draw = MagicMock()94 95 self.plotter.plot(hide_error=True)96 97 self.assertEqual(self.plotter.ax.get_xscale(), 'linear')98 self.assertEqual(self.plotter.ax.get_yscale(), 'linear')99 self.assertTrue(FigureCanvas.draw.called)100 79 101 80 def testCreateContextMenuQuick(self):
Note: See TracChangeset
for help on using the changeset viewer.