source: sasview/src/sas/qtgui/GUITests.py @ 61a8b58

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalc
Last change on this file since 61a8b58 was 01cda57, checked in by celinedurniak <celine.durniak@…>, 7 years ago

Added new GUI for Q resolution estimator

  • Property mode set to 100644
File size: 5.2 KB
Line 
1import unittest
2import sys
3from PyQt4 import QtGui
4
5# Prepare the general QApplication instance
6app = QtGui.QApplication(sys.argv)
7
8# Main Window
9from MainWindow.UnitTesting import AboutBoxTest
10from MainWindow.UnitTesting import DataExplorerTest
11from MainWindow.UnitTesting import WelcomePanelTest
12from MainWindow.UnitTesting import DroppableDataLoadWidgetTest
13from MainWindow.UnitTesting import GuiManagerTest
14from MainWindow.UnitTesting import MainWindowTest
15
16# Plotting
17from Plotting.UnitTesting import AddTextTest
18from Plotting.UnitTesting import PlotHelperTest
19from Plotting.UnitTesting import PlotterBaseTest
20from Plotting.UnitTesting import PlotterTest
21from Plotting.UnitTesting import Plotter2DTest
22from Plotting.UnitTesting import ScalePropertiesTest
23from Plotting.UnitTesting import WindowTitleTest
24from Plotting.UnitTesting import SetGraphRangeTest
25from Plotting.UnitTesting import LinearFitTest
26from Plotting.UnitTesting import PlotPropertiesTest
27from Plotting.UnitTesting import PlotUtilitiesTest
28from Plotting.UnitTesting import ColorMapTest
29from Plotting.UnitTesting import BoxSumTest
30from Plotting.UnitTesting import SlicerModelTest
31from Plotting.UnitTesting import SlicerParametersTest
32
33# Calculators
34from Calculators.UnitTesting import KiessigCalculatorTest
35from Calculators.UnitTesting import DensityCalculatorTest
36from Calculators.UnitTesting import GenericScatteringCalculatorTest
37from Calculators.UnitTesting import SLDCalculatorTest
38from Calculators.UnitTesting import SlitSizeCalculatorTest
39from Calculators.UnitTesting import ResolutionCalculatorPanelTest
40
41# Utilities
42from Utilities.UnitTesting import GuiUtilsTest
43from Utilities.UnitTesting import SasviewLoggerTest
44
45# Unit Testing
46from UnitTesting import TestUtilsTest
47
48# Perspectives
49import path_prepare
50from Perspectives.Fitting.UnitTesting import FittingWidgetTest
51from Perspectives.Fitting.UnitTesting import FittingPerspectiveTest
52from Perspectives.Fitting.UnitTesting import FittingLogicTest
53from Perspectives.Fitting.UnitTesting import FittingUtilitiesTest
54from Perspectives.Fitting.UnitTesting import FitPageTest
55from Perspectives.Fitting.UnitTesting import FittingOptionsTest
56
57def suite():
58    suites = (
59        # Plotting
60        unittest.makeSuite(PlotHelperTest.PlotHelperTest,             'test'),
61        unittest.makeSuite(PlotterTest.PlotterTest,                   'test'),
62        unittest.makeSuite(WindowTitleTest.WindowTitleTest,           'test'),
63        unittest.makeSuite(PlotterBaseTest.PlotterBaseTest,           'test'),
64        unittest.makeSuite(Plotter2DTest.Plotter2DTest,               'test'),
65        unittest.makeSuite(AddTextTest.AddTextTest,                   'test'),
66        unittest.makeSuite(ScalePropertiesTest.ScalePropertiesTest,   'test'),
67        unittest.makeSuite(SetGraphRangeTest.SetGraphRangeTest,       'test'),
68        unittest.makeSuite(LinearFitTest.LinearFitTest,               'test'),
69        unittest.makeSuite(PlotPropertiesTest.PlotPropertiesTest,     'test'),
70        unittest.makeSuite(PlotUtilitiesTest.PlotUtilitiesTest,       'test'),
71        unittest.makeSuite(ColorMapTest.ColorMapTest,                 'test'),
72        unittest.makeSuite(BoxSumTest.BoxSumTest,                     'test'),
73        unittest.makeSuite(SlicerModelTest.SlicerModelTest,           'test'),
74        unittest.makeSuite(SlicerParametersTest.SlicerParametersTest, 'test'),
75
76        # Main window
77        unittest.makeSuite(AboutBoxTest.AboutBoxTest,          'test'),
78        unittest.makeSuite(DataExplorerTest.DataExplorerTest,  'test'),
79        unittest.makeSuite(WelcomePanelTest.WelcomePanelTest,  'test'),
80        unittest.makeSuite(DroppableDataLoadWidgetTest.DroppableDataLoadWidgetTest, 'test'),
81        unittest.makeSuite(GuiManagerTest.GuiManagerTest,      'test'),
82        unittest.makeSuite(GuiUtilsTest.GuiUtilsTest,          'test'),
83        unittest.makeSuite(MainWindowTest.MainWindowTest,      'test'),
84
85        # Utilities
86        unittest.makeSuite(TestUtilsTest.TestUtilsTest,         'test'),
87        unittest.makeSuite(SasviewLoggerTest.SasviewLoggerTest, 'test'),
88
89        # Calculators
90        unittest.makeSuite(KiessigCalculatorTest.KiessigCalculatorTest,                     'test'),
91        unittest.makeSuite(DensityCalculatorTest.DensityCalculatorTest,                     'test'),
92        unittest.makeSuite(GenericScatteringCalculatorTest.GenericScatteringCalculatorTest, 'test'),
93        unittest.makeSuite(SLDCalculatorTest.SLDCalculatorTest, 'test'),
94        unittest.makeSuite(SlitSizeCalculatorTest.SlitSizeCalculatorTest, 'test'),
95        unittest.makeSuite(ResolutionCalculatorPanelTest.ResolutionCalculatorPanelTest, 'test'),
96
97        # Perspectives
98        unittest.makeSuite(FittingPerspectiveTest.FittingPerspectiveTest, 'test'),
99        unittest.makeSuite(FittingWidgetTest.FittingWidgetTest,           'test'),
100        unittest.makeSuite(FittingLogicTest.FittingLogicTest,             'test'),
101        unittest.makeSuite(FittingUtilitiesTest.FittingUtilitiesTest,     'test'),
102        unittest.makeSuite(FitPageTest.FitPageTest,                       'test'),
103        unittest.makeSuite(FittingOptionsTest.FittingOptionsTest,         'test'),
104     )
105    return unittest.TestSuite(suites)
106
107if __name__ == "__main__":
108    unittest.main(defaultTest="suite")
109
Note: See TracBrowser for help on using the repository browser.