FreeCAD

Форк
0
/
TestAddonManagerGui.py 
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

24
import addonmanager_freecad_interface as fci
25

26
# Unit test for the Addon Manager module GUI
27
from AddonManagerTest.gui.test_gui import TestGui as AddonManagerTestGui
28

29
from AddonManagerTest.gui.test_workers_utility import (
30
    TestWorkersUtility as AddonManagerTestWorkersUtility,
31
)
32
from AddonManagerTest.gui.test_workers_startup import (
33
    TestWorkersStartup as AddonManagerTestWorkersStartup,
34
)
35
from AddonManagerTest.gui.test_installer_gui import (
36
    TestInstallerGui as AddonManagerTestInstallerGui,
37
)
38
from AddonManagerTest.gui.test_installer_gui import (
39
    TestMacroInstallerGui as AddonManagerTestMacroInstallerGui,
40
)
41
from AddonManagerTest.gui.test_update_all_gui import (
42
    TestUpdateAllGui as AddonManagerTestUpdateAllGui,
43
)
44
from AddonManagerTest.gui.test_uninstaller_gui import (
45
    TestUninstallerGUI as AddonManagerTestUninstallerGUI,
46
)
47

48

49
class TestListTerminator:
50
    pass
51

52

53
# Basic usage mostly to get static analyzers to stop complaining about unused imports
54
loaded_gui_tests = [
55
    AddonManagerTestGui,
56
    AddonManagerTestWorkersUtility,
57
    AddonManagerTestWorkersStartup,
58
    AddonManagerTestInstallerGui,
59
    AddonManagerTestMacroInstallerGui,
60
    AddonManagerTestUpdateAllGui,
61
    AddonManagerTestUninstallerGUI,
62
    TestListTerminator,  # Needed to prevent the last test from running twice
63
]
64
for test in loaded_gui_tests:
65
    fci.Console.PrintLog(f"Loaded tests from {test.__name__}\n")
66

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.