[06b0138] | 1 | import unittest |
---|
[464cd07] | 2 | import sys |
---|
[4992ff2] | 3 | from PyQt5 import QtGui |
---|
| 4 | from PyQt5 import QtWidgets |
---|
[464cd07] | 5 | |
---|
| 6 | # Prepare the general QApplication instance |
---|
[4992ff2] | 7 | app = QtWidgets.QApplication(sys.argv) |
---|
[06b0138] | 8 | |
---|
| 9 | # Main Window |
---|
| 10 | from MainWindow.UnitTesting import AboutBoxTest |
---|
| 11 | from MainWindow.UnitTesting import DataExplorerTest |
---|
| 12 | from MainWindow.UnitTesting import WelcomePanelTest |
---|
| 13 | from MainWindow.UnitTesting import DroppableDataLoadWidgetTest |
---|
| 14 | from MainWindow.UnitTesting import GuiManagerTest |
---|
| 15 | from MainWindow.UnitTesting import MainWindowTest |
---|
| 16 | |
---|
[53c771e] | 17 | ## Plotting |
---|
[06b0138] | 18 | from Plotting.UnitTesting import AddTextTest |
---|
| 19 | from Plotting.UnitTesting import PlotHelperTest |
---|
| 20 | from Plotting.UnitTesting import WindowTitleTest |
---|
[53c771e] | 21 | from Plotting.UnitTesting import ScalePropertiesTest |
---|
[06b0138] | 22 | from Plotting.UnitTesting import SetGraphRangeTest |
---|
| 23 | from Plotting.UnitTesting import LinearFitTest |
---|
| 24 | from Plotting.UnitTesting import PlotPropertiesTest |
---|
| 25 | from Plotting.UnitTesting import PlotUtilitiesTest |
---|
| 26 | from Plotting.UnitTesting import ColorMapTest |
---|
| 27 | from Plotting.UnitTesting import BoxSumTest |
---|
| 28 | from Plotting.UnitTesting import SlicerModelTest |
---|
| 29 | from Plotting.UnitTesting import SlicerParametersTest |
---|
[53c771e] | 30 | from Plotting.UnitTesting import PlotterBaseTest |
---|
| 31 | from Plotting.UnitTesting import PlotterTest |
---|
| 32 | from Plotting.UnitTesting import Plotter2DTest |
---|
[06b0138] | 33 | |
---|
| 34 | # Calculators |
---|
| 35 | from Calculators.UnitTesting import KiessigCalculatorTest |
---|
| 36 | from Calculators.UnitTesting import DensityCalculatorTest |
---|
| 37 | from Calculators.UnitTesting import GenericScatteringCalculatorTest |
---|
[464cd07] | 38 | from Calculators.UnitTesting import SLDCalculatorTest |
---|
| 39 | from Calculators.UnitTesting import SlitSizeCalculatorTest |
---|
[01cda57] | 40 | from Calculators.UnitTesting import ResolutionCalculatorPanelTest |
---|
[d5c5d3d] | 41 | from Calculators.UnitTesting import DataOperationUtilityTest |
---|
[06b0138] | 42 | |
---|
| 43 | # Utilities |
---|
| 44 | from Utilities.UnitTesting import GuiUtilsTest |
---|
| 45 | from Utilities.UnitTesting import SasviewLoggerTest |
---|
[3b3b40b] | 46 | from Utilities.UnitTesting import GridPanelTest |
---|
| 47 | from Utilities.UnitTesting import ModelEditorTest |
---|
| 48 | from Utilities.UnitTesting import PluginDefinitionTest |
---|
| 49 | from Utilities.UnitTesting import TabbedModelEditorTest |
---|
[01ef3f7] | 50 | from Utilities.UnitTesting import AddMultEditorTest |
---|
[06b0138] | 51 | |
---|
| 52 | # Unit Testing |
---|
| 53 | from UnitTesting import TestUtilsTest |
---|
| 54 | |
---|
| 55 | # Perspectives |
---|
[7c487846] | 56 | # Fitting |
---|
[06b0138] | 57 | from Perspectives.Fitting.UnitTesting import FittingWidgetTest |
---|
| 58 | from Perspectives.Fitting.UnitTesting import FittingPerspectiveTest |
---|
| 59 | from Perspectives.Fitting.UnitTesting import FittingLogicTest |
---|
| 60 | from Perspectives.Fitting.UnitTesting import FittingUtilitiesTest |
---|
| 61 | from Perspectives.Fitting.UnitTesting import FitPageTest |
---|
[72f4834] | 62 | from Perspectives.Fitting.UnitTesting import FittingOptionsTest |
---|
[0595bb7] | 63 | from Perspectives.Fitting.UnitTesting import MultiConstraintTest |
---|
[da9a0722] | 64 | from Perspectives.Fitting.UnitTesting import ComplexConstraintTest |
---|
[676f137] | 65 | from Perspectives.Fitting.UnitTesting import ConstraintWidgetTest |
---|
[0595bb7] | 66 | |
---|
[7c487846] | 67 | # Invariant |
---|
| 68 | from Perspectives.Invariant.UnitTesting import InvariantPerspectiveTest |
---|
[06b0138] | 69 | |
---|
[676f137] | 70 | # Inversion |
---|
| 71 | from Perspectives.Inversion.UnitTesting import InversionPerspectiveTest |
---|
| 72 | |
---|
[06b0138] | 73 | def suite(): |
---|
| 74 | suites = ( |
---|
| 75 | # Plotting |
---|
| 76 | unittest.makeSuite(Plotter2DTest.Plotter2DTest, 'test'), |
---|
[53c771e] | 77 | unittest.makeSuite(PlotHelperTest.PlotHelperTest, 'test'), |
---|
[06b0138] | 78 | unittest.makeSuite(AddTextTest.AddTextTest, 'test'), |
---|
[53c771e] | 79 | unittest.makeSuite(WindowTitleTest.WindowTitleTest, 'test'), |
---|
[06b0138] | 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'), |
---|
[53c771e] | 89 | unittest.makeSuite(PlotterBaseTest.PlotterBaseTest, 'test'), |
---|
| 90 | unittest.makeSuite(PlotterTest.PlotterTest, 'test'), |
---|
[06b0138] | 91 | |
---|
| 92 | # Main window |
---|
| 93 | unittest.makeSuite(DataExplorerTest.DataExplorerTest, 'test'), |
---|
[f4a1433] | 94 | unittest.makeSuite(DroppableDataLoadWidgetTest.DroppableDataLoadWidgetTest, 'test'), |
---|
[06b0138] | 95 | unittest.makeSuite(MainWindowTest.MainWindowTest, 'test'), |
---|
[53c771e] | 96 | unittest.makeSuite(GuiManagerTest.GuiManagerTest, 'test'), |
---|
| 97 | unittest.makeSuite(AboutBoxTest.AboutBoxTest, 'test'), |
---|
| 98 | unittest.makeSuite(WelcomePanelTest.WelcomePanelTest, 'test'), |
---|
[06b0138] | 99 | |
---|
| 100 | # Utilities |
---|
[0261bc1] | 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'), |
---|
[3b3b40b] | 106 | unittest.makeSuite(GridPanelTest.BatchOutputPanelTest, 'test'), |
---|
| 107 | unittest.makeSuite(ModelEditorTest.ModelEditorTest, 'test'), |
---|
| 108 | unittest.makeSuite(PluginDefinitionTest.PluginDefinitionTest, 'test'), |
---|
| 109 | unittest.makeSuite(TabbedModelEditorTest.TabbedModelEditorTest,'test'), |
---|
[01ef3f7] | 110 | unittest.makeSuite(AddMultEditorTest.AddMultEditorTest, 'test'), |
---|
[06b0138] | 111 | |
---|
| 112 | # Calculators |
---|
| 113 | unittest.makeSuite(KiessigCalculatorTest.KiessigCalculatorTest, 'test'), |
---|
| 114 | unittest.makeSuite(DensityCalculatorTest.DensityCalculatorTest, 'test'), |
---|
| 115 | unittest.makeSuite(GenericScatteringCalculatorTest.GenericScatteringCalculatorTest, 'test'), |
---|
[464cd07] | 116 | unittest.makeSuite(SLDCalculatorTest.SLDCalculatorTest, 'test'), |
---|
| 117 | unittest.makeSuite(SlitSizeCalculatorTest.SlitSizeCalculatorTest, 'test'), |
---|
[01cda57] | 118 | unittest.makeSuite(ResolutionCalculatorPanelTest.ResolutionCalculatorPanelTest, 'test'), |
---|
[d5c5d3d] | 119 | unittest.makeSuite(DataOperationUtilityTest.DataOperationUtilityTest, 'test'), |
---|
[06b0138] | 120 | |
---|
| 121 | # Perspectives |
---|
[7c487846] | 122 | # Fitting |
---|
[06b0138] | 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'), |
---|
[72f4834] | 128 | unittest.makeSuite(FittingOptionsTest.FittingOptionsTest, 'test'), |
---|
[0595bb7] | 129 | unittest.makeSuite(MultiConstraintTest.MultiConstraintTest, 'test'), |
---|
[676f137] | 130 | unittest.makeSuite(ConstraintWidgetTest.ConstraintWidgetTest, 'test'), |
---|
[da9a0722] | 131 | unittest.makeSuite(ComplexConstraintTest.ComplexConstraintTest, 'test'), |
---|
[676f137] | 132 | |
---|
[7c487846] | 133 | # Invariant |
---|
| 134 | unittest.makeSuite(InvariantPerspectiveTest.InvariantPerspectiveTest, 'test'), |
---|
[50bfab0] | 135 | # Inversion |
---|
| 136 | unittest.makeSuite(InversionPerspectiveTest.InversionTest, 'test'), |
---|
[676f137] | 137 | ) |
---|
[06b0138] | 138 | return unittest.TestSuite(suites) |
---|
| 139 | |
---|
| 140 | if __name__ == "__main__": |
---|
| 141 | unittest.main(defaultTest="suite") |
---|
| 142 | |
---|