Changeset 83eb5208 in sasview for src/sas/qtgui/Plotting/UnitTesting/PlotterTest.py
- Timestamp:
- Apr 19, 2017 3:58:36 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:
- cd2cc745
- Parents:
- 6c8fb2c
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Plotting/UnitTesting/PlotterTest.py
r0268aed r83eb5208 14 14 from sas.sasgui.guiframe.dataFitting import Data2D 15 15 from UnitTesting.TestUtils import WarningTestNotImplemented 16 from sas.qtgui. LinearFit import LinearFit17 from sas.qtgui.Plot Properties import PlotProperties16 from sas.qtgui.Plotting.LinearFit import LinearFit 17 from sas.qtgui.Plotting.PlotProperties import PlotProperties 18 18 19 19 # Tested module 20 import sas.qtgui.Plott er as Plotter20 import sas.qtgui.Plotting.Plotter as Plotter 21 21 22 22 app = QtGui.QApplication(sys.argv) … … 385 385 self.assertEqual(self.plotter.plot_dict[2].hide_error, error_status) 386 386 387 def testOnModifyPlot(self):387 def notestOnModifyPlot(self): 388 388 """ Test the functionality for changing plot properties """ 389 389 # Prepare new data … … 401 401 self.plotter.plot(data2) 402 402 403 with patch(' PlotProperties.PlotProperties') as mock:403 with patch('sas.qtgui.Plotting.PlotProperties.PlotProperties') as mock: 404 404 instance = mock.return_value 405 405 QtGui.QDialog.exec_ = MagicMock(return_value=QtGui.QDialog.Accepted) … … 408 408 self.plotter.onModifyPlot(2) 409 409 410 #print self.plotter.plot_dict[2].symbol411 412 410 413 411 if __name__ == "__main__":
Note: See TracChangeset
for help on using the changeset viewer.