From e3246e13a00a4c72bfcaa16477ea99f03690e605 Mon Sep 17 00:00:00 2001 From: wmayer Date: Sun, 20 Oct 2024 19:42:36 +0200 Subject: [PATCH] PD: Explicitly switch off AllowCompound for some tests to make them succeed Fixes #17363 --- src/Mod/PartDesign/PartDesignTests/TestInvoluteGear.py | 1 + src/Mod/PartDesign/PartDesignTests/TestMultiTransform.py | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Mod/PartDesign/PartDesignTests/TestInvoluteGear.py b/src/Mod/PartDesign/PartDesignTests/TestInvoluteGear.py index 13e6e463fa..8d1371778b 100644 --- a/src/Mod/PartDesign/PartDesignTests/TestInvoluteGear.py +++ b/src/Mod/PartDesign/PartDesignTests/TestInvoluteGear.py @@ -254,6 +254,7 @@ class TestInvoluteGear(unittest.TestCase): profile.HighPrecision = False profile.NumberOfTeeth = 8 body = self.Doc.addObject('PartDesign::Body','GearBody') + body.AllowCompound = False body.addObject(profile) cylinder = body.newObject('PartDesign::AdditiveCylinder','GearCylinder') default_dedendum = 1.25 diff --git a/src/Mod/PartDesign/PartDesignTests/TestMultiTransform.py b/src/Mod/PartDesign/PartDesignTests/TestMultiTransform.py index fff403484d..fe7098ef9b 100644 --- a/src/Mod/PartDesign/PartDesignTests/TestMultiTransform.py +++ b/src/Mod/PartDesign/PartDesignTests/TestMultiTransform.py @@ -70,6 +70,7 @@ class TestMultiTransform(unittest.TestCase): # Arrange Doc = self.Doc Body = Doc.addObject('PartDesign::Body','Body') + Body.AllowCompound = False # Make first offset cube Pad PadSketch = Doc.addObject('Sketcher::SketchObject', 'SketchPad') Body.addObject(PadSketch)