Changeset 83eb5208 in sasview for src/sas/qtgui/Plotting/UnitTesting
- 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
- Location:
- src/sas/qtgui/Plotting/UnitTesting
- Files:
-
- 1 added
- 15 moved
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Plotting/UnitTesting/AddTextTest.py
- Property mode changed from 100755 to 100644
r9290b1a r83eb5208 9 9 10 10 # Local 11 from AddText import AddText11 from sas.qtgui.Plotting.AddText import AddText 12 12 13 13 app = QtGui.QApplication(sys.argv) -
src/sas/qtgui/Plotting/UnitTesting/BoxSumTest.py
- Property mode changed from 100755 to 100644
r3bdbfcc r83eb5208 10 10 11 11 # Local 12 from BoxSum import BoxSum12 from sas.qtgui.Plotting.BoxSum import BoxSum 13 13 14 14 app = QtGui.QApplication(sys.argv) -
src/sas/qtgui/Plotting/UnitTesting/ColorMapTest.py
- Property mode changed from 100755 to 100644
r5d89f43 r83eb5208 11 11 12 12 from sas.sasgui.guiframe.dataFitting import Data2D 13 import sas.qtgui.Plott er2D as Plotter2D13 import sas.qtgui.Plotting.Plotter2D as Plotter2D 14 14 from UnitTesting.TestUtils import WarningTestNotImplemented 15 15 from UnitTesting.TestUtils import QtSignalSpy 16 16 17 17 # Local 18 from sas.qtgui. ColorMap import ColorMap18 from sas.qtgui.Plotting.ColorMap import ColorMap 19 19 20 20 app = QtGui.QApplication(sys.argv) -
src/sas/qtgui/Plotting/UnitTesting/LinearFitTest.py
- Property mode changed from 100755 to 100644
r2e3e959 r83eb5208 10 10 11 11 from sas.sasgui.guiframe.dataFitting import Data1D 12 import sas.qtgui.Plott er as Plotter12 import sas.qtgui.Plotting.Plotter as Plotter 13 13 14 14 # Local 15 from LinearFit import LinearFit15 from sas.qtgui.Plotting.LinearFit import LinearFit 16 16 17 17 app = QtGui.QApplication(sys.argv) -
src/sas/qtgui/Plotting/UnitTesting/PlotHelperTest.py
r0268aed r83eb5208 2 2 3 3 # Tested module 4 import PlotHelper4 import sas.qtgui.Plotting.PlotHelper as PlotHelper 5 5 6 6 class PlotHelperTest(unittest.TestCase): -
src/sas/qtgui/Plotting/UnitTesting/PlotPropertiesTest.py
- Property mode changed from 100755 to 100644
r0f3c22d r83eb5208 9 9 10 10 # Local 11 from PlotProperties import PlotProperties11 from sas.qtgui.Plotting.PlotProperties import PlotProperties 12 12 13 13 app = QtGui.QApplication(sys.argv) -
src/sas/qtgui/Plotting/UnitTesting/PlotUtilitiesTest.py
- Property mode changed from 100755 to 100644
rdb5cd8d r83eb5208 6 6 7 7 # Tested module 8 import PlotUtilities8 import sas.qtgui.Plotting.PlotUtilities as PlotUtilities 9 9 10 10 class PlotUtilitiesTest(unittest.TestCase): -
src/sas/qtgui/Plotting/UnitTesting/Plotter2DTest.py
r965fbd8 r83eb5208 17 17 18 18 # Tested module 19 import sas.qtgui.Plott er2D as Plotter2D19 import sas.qtgui.Plotting.Plotter2D as Plotter2D 20 20 21 21 app = QtGui.QApplication(sys.argv) -
src/sas/qtgui/Plotting/UnitTesting/PlotterBaseTest.py
- Property mode changed from 100755 to 100644
raadf0af1 r83eb5208 12 12 ####### 13 13 14 from sas.qtgui. ScaleProperties import ScaleProperties15 from sas.qtgui. WindowTitle import WindowTitle14 from sas.qtgui.Plotting.ScaleProperties import ScaleProperties 15 from sas.qtgui.Plotting.WindowTitle import WindowTitle 16 16 #import sas.qtgui.GuiUtils as GuiUtils 17 from sas.qtgui. GuiUtils import *18 import sas.qtgui.Plot Helper as PlotHelper17 from sas.qtgui.Utilities.GuiUtils import * 18 import sas.qtgui.Plotting.PlotHelper as PlotHelper 19 19 20 20 # Tested module 21 import sas.qtgui.Plott erBase as PlotterBase21 import sas.qtgui.Plotting.PlotterBase as PlotterBase 22 22 23 23 app = QtGui.QApplication(sys.argv) -
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__": -
src/sas/qtgui/Plotting/UnitTesting/ScalePropertiesTest.py
- Property mode changed from 100755 to 100644
r6d05e1d r83eb5208 5 5 6 6 # set up import paths 7 import path_prepare7 import sas.qtgui.path_prepare 8 8 9 9 # Local 10 from ScaleProperties import ScaleProperties10 from sas.qtgui.Plotting.ScaleProperties import ScaleProperties 11 11 12 12 app = QtGui.QApplication(sys.argv) -
src/sas/qtgui/Plotting/UnitTesting/SetGraphRangeTest.py
- Property mode changed from 100755 to 100644
rd3ca363 r83eb5208 5 5 6 6 # set up import paths 7 import path_prepare7 import sas.qtgui.path_prepare 8 8 9 9 # Local 10 from SetGraphRange import SetGraphRange10 from sas.qtgui.Plotting.SetGraphRange import SetGraphRange 11 11 12 12 app = QtGui.QApplication(sys.argv) -
src/sas/qtgui/Plotting/UnitTesting/SlicerModelTest.py
- Property mode changed from 100755 to 100644
r3bdbfcc r83eb5208 7 7 8 8 # set up import paths 9 import path_prepare9 import sas.qtgui.path_prepare 10 10 11 11 # Local 12 from SlicerModel import SlicerModel12 from sas.qtgui.Plotting.SlicerModel import SlicerModel 13 13 14 14 app = QtGui.QApplication(sys.argv) -
src/sas/qtgui/Plotting/UnitTesting/SlicerParametersTest.py
rcf89cce r83eb5208 11 11 12 12 # set up import paths 13 import path_prepare13 import sas.qtgui.path_prepare 14 14 15 from UnitTesting.TestUtils import QtSignalSpy15 from sas.qtgui.UnitTesting.TestUtils import QtSignalSpy 16 16 17 17 # Local 18 from SlicerParameters import SlicerParameters18 from sas.qtgui.Plotting.SlicerParameters import SlicerParameters 19 19 20 20 app = QtGui.QApplication(sys.argv) -
src/sas/qtgui/Plotting/UnitTesting/WindowTitleTest.py
- Property mode changed from 100755 to 100644
r27313b7 r83eb5208 5 5 6 6 # set up import paths 7 import path_prepare7 import sas.qtgui.path_prepare 8 8 9 9 # Local 10 from WindowTitle import WindowTitle10 from sas.qtgui.Plotting.WindowTitle import WindowTitle 11 11 12 12 app = QtGui.QApplication(sys.argv) … … 38 38 self.widget.txtTitle.clear() 39 39 self.widget.txtTitle.setText("5 elephants") 40 app.processEvents() 40 41 # Retrieve value 41 42 new_title = self.widget.title()
Note: See TracChangeset
for help on using the changeset viewer.