FreeCAD
65 строк · 3.0 Кб
1# SPDX-License-Identifier: LGPL-2.1-or-later
2# ***************************************************************************
3# * *
4# * Copyright (c) 2022-2023 FreeCAD Project Association *
5# * *
6# * This file is part of FreeCAD. *
7# * *
8# * FreeCAD is free software: you can redistribute it and/or modify it *
9# * under the terms of the GNU Lesser General Public License as *
10# * published by the Free Software Foundation, either version 2.1 of the *
11# * License, or (at your option) any later version. *
12# * *
13# * FreeCAD is distributed in the hope that it will be useful, but *
14# * WITHOUT ANY WARRANTY; without even the implied warranty of *
15# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
16# * Lesser General Public License for more details. *
17# * *
18# * You should have received a copy of the GNU Lesser General Public *
19# * License along with FreeCAD. If not, see *
20# * <https://www.gnu.org/licenses/>. *
21# * *
22# ***************************************************************************
23
24import addonmanager_freecad_interface as fci25
26# Unit test for the Addon Manager module GUI
27from AddonManagerTest.gui.test_gui import TestGui as AddonManagerTestGui28
29from AddonManagerTest.gui.test_workers_utility import (30TestWorkersUtility as AddonManagerTestWorkersUtility,31)
32from AddonManagerTest.gui.test_workers_startup import (33TestWorkersStartup as AddonManagerTestWorkersStartup,34)
35from AddonManagerTest.gui.test_installer_gui import (36TestInstallerGui as AddonManagerTestInstallerGui,37)
38from AddonManagerTest.gui.test_installer_gui import (39TestMacroInstallerGui as AddonManagerTestMacroInstallerGui,40)
41from AddonManagerTest.gui.test_update_all_gui import (42TestUpdateAllGui as AddonManagerTestUpdateAllGui,43)
44from AddonManagerTest.gui.test_uninstaller_gui import (45TestUninstallerGUI as AddonManagerTestUninstallerGUI,46)
47
48
49class TestListTerminator:50pass51
52
53# Basic usage mostly to get static analyzers to stop complaining about unused imports
54loaded_gui_tests = [55AddonManagerTestGui,56AddonManagerTestWorkersUtility,57AddonManagerTestWorkersStartup,58AddonManagerTestInstallerGui,59AddonManagerTestMacroInstallerGui,60AddonManagerTestUpdateAllGui,61AddonManagerTestUninstallerGUI,62TestListTerminator, # Needed to prevent the last test from running twice63]
64for test in loaded_gui_tests:65fci.Console.PrintLog(f"Loaded tests from {test.__name__}\n")66