Addon Manager: Refactor installation code
Improve testability of installation code by refactoring it to completely separate the GUI and non-GUI code, and to provide more robust support for non-GUI access to some type of Addon Manager activity.
This commit is contained in:
@@ -1,28 +1,26 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# ***************************************************************************
|
||||
# * *
|
||||
# * Copyright (c) 2022 FreeCAD Project Association *
|
||||
# * *
|
||||
# * This file is part of the FreeCAD CAx development system. *
|
||||
# * This file is part of FreeCAD. *
|
||||
# * *
|
||||
# * This library is free software; you can redistribute it and/or *
|
||||
# * modify it under the terms of the GNU Lesser General Public *
|
||||
# * License as published by the Free Software Foundation; either *
|
||||
# * version 2.1 of the License, or (at your option) any later version. *
|
||||
# * FreeCAD is free software: you can redistribute it and/or modify it *
|
||||
# * under the terms of the GNU Lesser General Public License as *
|
||||
# * published by the Free Software Foundation, either version 2.1 of the *
|
||||
# * License, or (at your option) any later version. *
|
||||
# * *
|
||||
# * This library is distributed in the hope that it will be useful, *
|
||||
# * but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||
# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
|
||||
# * FreeCAD is distributed in the hope that it will be useful, but *
|
||||
# * WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||
# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
|
||||
# * Lesser General Public License for more details. *
|
||||
# * *
|
||||
# * You should have received a copy of the GNU Lesser General Public *
|
||||
# * License along with this library; if not, write to the Free Software *
|
||||
# * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA *
|
||||
# * 02110-1301 USA *
|
||||
# * License along with FreeCAD. If not, see *
|
||||
# * <https://www.gnu.org/licenses/>. *
|
||||
# * *
|
||||
# ***************************************************************************
|
||||
|
||||
# Unit test for the Addon Manager module
|
||||
# Unit tests for the Addon Manager module
|
||||
from AddonManagerTest.app.test_utilities import (
|
||||
TestUtilities as AddonManagerTestUtilities,
|
||||
)
|
||||
@@ -35,9 +33,19 @@ from AddonManagerTest.app.test_macro import (
|
||||
from AddonManagerTest.app.test_git import (
|
||||
TestGit as AddonManagerTestGit,
|
||||
)
|
||||
from AddonManagerTest.app.test_installer import (
|
||||
TestAddonInstaller as AddonManagerTestAddonInstaller,
|
||||
TestMacroInstaller as AddonManagerTestMacroInstaller,
|
||||
)
|
||||
from AddonManagerTest.app.test_dependency_installer import (
|
||||
TestDependencyInstaller as AddonManagerTestDependencyInstaller,
|
||||
)
|
||||
|
||||
# dummy usage to get flake8 and lgtm quiet
|
||||
False if AddonManagerTestUtilities.__name__ else True
|
||||
False if AddonManagerTestAddon.__name__ else True
|
||||
False if AddonManagerTestMacro.__name__ else True
|
||||
False if AddonManagerTestGit.__name__ else True
|
||||
False if AddonManagerTestAddonInstaller.__name__ else True
|
||||
False if AddonManagerTestMacroInstaller.__name__ else True
|
||||
False if AddonManagerTestDependencyInstaller.__name__ else True
|
||||
|
||||
Reference in New Issue
Block a user