Changeset 63319b0 in sasview for src/sas/qtgui/Plotting
- Timestamp:
- Jan 29, 2018 9:33:58 AM (7 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:
- da9a0722
- Parents:
- 9c0ce68
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Plotting/UnitTesting/PlotterTest.py
- Property mode changed from 100755 to 100644
r53c771e r63319b0 50 50 self.assertEqual(self.plotter.data, self.data) 51 51 self.assertEqual(self.plotter._title, self.data.name) 52 self.assertEqual(self.plotter.xLabel, " $()$")53 self.assertEqual(self.plotter.yLabel, " $()$")52 self.assertEqual(self.plotter.xLabel, "") 53 self.assertEqual(self.plotter.yLabel, "") 54 54 55 55 def testPlotWithErrors(self): … … 91 91 self.plotter.data = data 92 92 self.plotter.show() 93 FigureCanvas.draw = MagicMock()93 FigureCanvas.draw_idle = MagicMock() 94 94 95 95 self.plotter.plot(hide_error=True) … … 97 97 self.assertEqual(self.plotter.ax.get_xscale(), 'linear') 98 98 self.assertEqual(self.plotter.ax.get_yscale(), 'linear') 99 self.assertTrue(FigureCanvas.draw .called)99 self.assertTrue(FigureCanvas.draw_idle.called) 100 100 101 101 def testCreateContextMenuQuick(self): … … 200 200 self.plotter.addText.exec_ = MagicMock(return_value = QtWidgets.QDialog.Accepted) 201 201 # Add text to graph 202 self.plotter.x_click = 1.0 203 self.plotter.y_click = 5.0 202 204 self.plotter.onAddText() 203 205 self.plotter.show() … … 394 396 xl = self.plotter.ax.xaxis.label.get_text() 395 397 yl = self.plotter.ax.yaxis.label.get_text() 396 self.assertEqual(xl, " $()$")397 self.assertEqual(yl, " $()$")398 self.assertEqual(xl, "") 399 self.assertEqual(yl, "") 398 400 399 401 # Prepare new data
Note: See TracChangeset
for help on using the changeset viewer.