Add override flag for recomputes; set it in relevant tests with old files.

This commit is contained in:
bgbsww
2024-09-14 21:45:52 -04:00
committed by Yorik van Havre
parent a54f03f666
commit 0f53f2195d
14 changed files with 44 additions and 11 deletions

View File

@@ -34,8 +34,10 @@ FIXTURE_PATH = pathlib.Path(__file__).parent / "Fixtures"
class TestInvoluteGear(unittest.TestCase):
def setUp(self):
self.Doc = FreeCAD.newDocument("PartDesignTestInvoluteGear")
FreeCAD.ConfigSet("SuppressRecomputeRequiredDialog", "True")
def tearDown(self):
FreeCAD.ConfigSet("SuppressRecomputeRequiredDialog", "")
FreeCAD.closeDocument(self.Doc.Name)
def testDefaultGearProfile(self):

View File

@@ -29,6 +29,7 @@ App = FreeCAD
class TestMultiTransform(unittest.TestCase):
def setUp(self):
self.Doc = FreeCAD.newDocument("PartDesignTestMultiTransform")
FreeCAD.ConfigSet("SuppressRecomputeRequiredDialog", "True")
def testMultiTransform(self):
self.Body = self.Doc.addObject('PartDesign::Body','Body')
@@ -132,5 +133,6 @@ class TestMultiTransform(unittest.TestCase):
def tearDown(self):
#closing doc
FreeCAD.closeDocument("PartDesignTestMultiTransform")
FreeCAD.ConfigSet("SuppressRecomputeRequiredDialog", "")
#print ("omit closing document for debugging")