From 78fcaaee347567df43044cc0d53f403981290f7e Mon Sep 17 00:00:00 2001 From: Furgo <148809153+furgo16@users.noreply.github.com> Date: Mon, 12 May 2025 18:22:50 +0200 Subject: [PATCH] Revert "BIM: add workaround for Draft workbench test mockup" This reverts commit 5be803863e7552f7cb96998cd682edd3c556b4be. --- src/Mod/BIM/bimtests/TestArchBase.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/Mod/BIM/bimtests/TestArchBase.py b/src/Mod/BIM/bimtests/TestArchBase.py index d055380b03..00cbcac583 100644 --- a/src/Mod/BIM/bimtests/TestArchBase.py +++ b/src/Mod/BIM/bimtests/TestArchBase.py @@ -30,21 +30,6 @@ import FreeCAD class TestArchBase(unittest.TestCase): def setUp(self): - import Draft - from importlib import reload - - # Restore original Draft.extrude function if mocked - # This is a workaround for the issue where the Draft.extrude function - # is replaced with a mock function (drafttests.auxiliary.fake_function) - # during testing. - # See https://github.com/FreeCAD/FreeCAD/pull/21134#issuecomment-2868570722 - if hasattr(Draft, 'extrude'): - extrude_code = getattr(Draft.extrude, '__code__', None) - if extrude_code and 'auxiliary.py' in extrude_code.co_filename: - reload(Draft) - from Draft import extrude - Draft.extrude = extrude - self.document = FreeCAD.newDocument(self.__class__.__name__) def tearDown(self):