Addon Manager: Remove direct FreeCAD import in tests

This commit is contained in:
Chris Hennes
2023-02-20 12:25:46 -06:00
committed by Chris Hennes
parent 2e2153813f
commit 892c0a95f6
2 changed files with 8 additions and 10 deletions

View File

@@ -21,6 +21,8 @@
# * *
# ***************************************************************************
import addonmanager_freecad_interface as fci
# Unit tests for the Addon Manager module
from AddonManagerTest.app.test_utilities import (
TestUtilities as AddonManagerTestUtilities,
@@ -76,6 +78,5 @@ loaded_gui_tests = [
AddonManagerTestDataPaths,
TestListTerminator # Needed to prevent the last test from running twice
]
if FreeCAD:
for test in loaded_gui_tests:
FreeCAD.Console.PrintLog(f"Loaded tests from {test.__name__}\n")
for test in loaded_gui_tests:
fci.Console.PrintLog(f"Loaded tests from {test.__name__}\n")