source: sasview/src/sas/qtgui/GUITests.py @ 01ef3f7

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 01ef3f7 was 01ef3f7, checked in by celinedurniak <celine.durniak@…>, 7 years ago

Implemented new GUI for Add/Multiply? models

  • Property mode set to 100644
File size: 7.0 KB
Line 
1import unittest
2import sys
3from PyQt5 import QtGui
4from PyQt5 import QtWidgets
5
6# Prepare the general QApplication instance
7app = QtWidgets.QApplication(sys.argv)
8
9# Main Window
10from MainWindow.UnitTesting import AboutBoxTest
11from MainWindow.UnitTesting import DataExplorerTest
12from MainWindow.UnitTesting import WelcomePanelTest
13from MainWindow.UnitTesting import DroppableDataLoadWidgetTest
14from MainWindow.UnitTesting import GuiManagerTest
15from MainWindow.UnitTesting import MainWindowTest
16
17## Plotting
18from Plotting.UnitTesting import AddTextTest
19from Plotting.UnitTesting import PlotHelperTest
20from Plotting.UnitTesting import WindowTitleTest
21from Plotting.UnitTesting import ScalePropertiesTest
22from Plotting.UnitTesting import SetGraphRangeTest
23from Plotting.UnitTesting import LinearFitTest
24from Plotting.UnitTesting import PlotPropertiesTest
25from Plotting.UnitTesting import PlotUtilitiesTest
26from Plotting.UnitTesting import ColorMapTest
27from Plotting.UnitTesting import BoxSumTest
28from Plotting.UnitTesting import SlicerModelTest
29from Plotting.UnitTesting import SlicerParametersTest
30from Plotting.UnitTesting import PlotterBaseTest
31from Plotting.UnitTesting import PlotterTest
32from Plotting.UnitTesting import Plotter2DTest
33
34# Calculators
35from Calculators.UnitTesting import KiessigCalculatorTest
36from Calculators.UnitTesting import DensityCalculatorTest
37from Calculators.UnitTesting import GenericScatteringCalculatorTest
38from Calculators.UnitTesting import SLDCalculatorTest
39from Calculators.UnitTesting import SlitSizeCalculatorTest
40from Calculators.UnitTesting import ResolutionCalculatorPanelTest
41from Calculators.UnitTesting import DataOperationUtilityTest
42
43# Utilities
44from Utilities.UnitTesting import GuiUtilsTest
45from Utilities.UnitTesting import SasviewLoggerTest
46from Utilities.UnitTesting import GridPanelTest
47from Utilities.UnitTesting import ModelEditorTest
48from Utilities.UnitTesting import PluginDefinitionTest
49from Utilities.UnitTesting import TabbedModelEditorTest
50from Utilities.UnitTesting import AddMultEditorTest
51
52# Unit Testing
53from UnitTesting import TestUtilsTest
54
55# Perspectives
56#  Fitting
57from Perspectives.Fitting.UnitTesting import FittingWidgetTest
58from Perspectives.Fitting.UnitTesting import FittingPerspectiveTest
59from Perspectives.Fitting.UnitTesting import FittingLogicTest
60from Perspectives.Fitting.UnitTesting import FittingUtilitiesTest
61from Perspectives.Fitting.UnitTesting import FitPageTest
62from Perspectives.Fitting.UnitTesting import FittingOptionsTest
63from Perspectives.Fitting.UnitTesting import MultiConstraintTest
64from Perspectives.Fitting.UnitTesting import ComplexConstraintTest
65from Perspectives.Fitting.UnitTesting import ConstraintWidgetTest
66
67#  Invariant
68from Perspectives.Invariant.UnitTesting import InvariantPerspectiveTest
69
70#  Inversion
71from Perspectives.Inversion.UnitTesting import InversionPerspectiveTest
72
73def suite():
74    suites = (
75        # Plotting
76        unittest.makeSuite(Plotter2DTest.Plotter2DTest,               'test'),
77        unittest.makeSuite(PlotHelperTest.PlotHelperTest,             'test'),
78        unittest.makeSuite(AddTextTest.AddTextTest,                   'test'),
79        unittest.makeSuite(WindowTitleTest.WindowTitleTest,           'test'),
80        unittest.makeSuite(ScalePropertiesTest.ScalePropertiesTest,   'test'),
81        unittest.makeSuite(SetGraphRangeTest.SetGraphRangeTest,       'test'),
82        unittest.makeSuite(LinearFitTest.LinearFitTest,               'test'),
83        unittest.makeSuite(PlotPropertiesTest.PlotPropertiesTest,     'test'),
84        unittest.makeSuite(PlotUtilitiesTest.PlotUtilitiesTest,       'test'),
85        unittest.makeSuite(ColorMapTest.ColorMapTest,                 'test'),
86        unittest.makeSuite(BoxSumTest.BoxSumTest,                     'test'),
87        unittest.makeSuite(SlicerModelTest.SlicerModelTest,           'test'),
88        unittest.makeSuite(SlicerParametersTest.SlicerParametersTest, 'test'),
89        unittest.makeSuite(PlotterBaseTest.PlotterBaseTest,           'test'),
90        unittest.makeSuite(PlotterTest.PlotterTest,                   'test'),
91
92        # Main window
93        unittest.makeSuite(DataExplorerTest.DataExplorerTest,  'test'),
94        unittest.makeSuite(DroppableDataLoadWidgetTest.DroppableDataLoadWidgetTest, 'test'),
95        unittest.makeSuite(MainWindowTest.MainWindowTest,      'test'),
96        unittest.makeSuite(GuiManagerTest.GuiManagerTest,      'test'),
97        unittest.makeSuite(AboutBoxTest.AboutBoxTest,          'test'),
98        unittest.makeSuite(WelcomePanelTest.WelcomePanelTest,  'test'),
99
100        # Utilities
101        unittest.makeSuite(TestUtilsTest.TestUtilsTest,           'test'),
102        unittest.makeSuite(SasviewLoggerTest.SasviewLoggerTest,   'test'),
103        unittest.makeSuite(GuiUtilsTest.GuiUtilsTest,             'test'),
104        unittest.makeSuite(GuiUtilsTest.DoubleValidatorTest,      'test'),
105        unittest.makeSuite(GuiUtilsTest.HashableStandardItemTest, 'test'),
106        unittest.makeSuite(GridPanelTest.BatchOutputPanelTest,    'test'),
107        unittest.makeSuite(ModelEditorTest.ModelEditorTest,            'test'),
108        unittest.makeSuite(PluginDefinitionTest.PluginDefinitionTest,  'test'),
109        unittest.makeSuite(TabbedModelEditorTest.TabbedModelEditorTest,'test'),
110        unittest.makeSuite(AddMultEditorTest.AddMultEditorTest, 'test'),
111
112        # Calculators
113        unittest.makeSuite(KiessigCalculatorTest.KiessigCalculatorTest,                     'test'),
114        unittest.makeSuite(DensityCalculatorTest.DensityCalculatorTest,                     'test'),
115        unittest.makeSuite(GenericScatteringCalculatorTest.GenericScatteringCalculatorTest, 'test'),
116        unittest.makeSuite(SLDCalculatorTest.SLDCalculatorTest, 'test'),
117        unittest.makeSuite(SlitSizeCalculatorTest.SlitSizeCalculatorTest, 'test'),
118        unittest.makeSuite(ResolutionCalculatorPanelTest.ResolutionCalculatorPanelTest, 'test'),
119        unittest.makeSuite(DataOperationUtilityTest.DataOperationUtilityTest, 'test'),
120
121        # Perspectives
122        #  Fitting
123        unittest.makeSuite(FittingPerspectiveTest.FittingPerspectiveTest, 'test'),
124        unittest.makeSuite(FittingWidgetTest.FittingWidgetTest,           'test'),
125        unittest.makeSuite(FittingLogicTest.FittingLogicTest,             'test'),
126        unittest.makeSuite(FittingUtilitiesTest.FittingUtilitiesTest,     'test'),
127        unittest.makeSuite(FitPageTest.FitPageTest,                       'test'),
128        unittest.makeSuite(FittingOptionsTest.FittingOptionsTest,         'test'),
129        unittest.makeSuite(MultiConstraintTest.MultiConstraintTest,       'test'),
130        unittest.makeSuite(ConstraintWidgetTest.ConstraintWidgetTest,     'test'),
131        unittest.makeSuite(ComplexConstraintTest.ComplexConstraintTest,   'test'),
132
133        #  Invariant
134        unittest.makeSuite(InvariantPerspectiveTest.InvariantPerspectiveTest,  'test'),
135        #  Inversion
136        unittest.makeSuite(InversionPerspectiveTest.InversionTest,  'test'),
137        )
138    return unittest.TestSuite(suites)
139
140if __name__ == "__main__":
141    unittest.main(defaultTest="suite")
142
Note: See TracBrowser for help on using the repository browser.