Add override flag for recomputes; set it in relevant tests with old files.
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user