Test: fix test case
Adding dynamic property with an invalid name or existing name is now an error, because there is no easy way for Python code to find out the name of a property if it is auto renamed.
This commit is contained in:
@@ -45,7 +45,6 @@ class TestPathStock(PathTestBase):
|
||||
model = FreeCAD.ActiveDocument.addObject("App::DocumentObjectGroup", "Model")
|
||||
model.addObject(self.base)
|
||||
self.job.Model = model
|
||||
self.job.addProperty('App::PropertyLink', 'Proxy')
|
||||
self.job.Proxy = FakeJobProxy()
|
||||
|
||||
def tearDown(self):
|
||||
|
||||
@@ -1325,7 +1325,7 @@ class DocumentPropertyCases(unittest.TestCase):
|
||||
# testing the up and downstream stuff
|
||||
props=self.Obj.supportedProperties()
|
||||
for i in props:
|
||||
self.Obj.addProperty(i,i)
|
||||
self.Obj.addProperty(i,i.replace(':','_'))
|
||||
tempPath = tempfile.gettempdir()
|
||||
tempFile = tempPath + os.sep + "PropertyTests.FCStd"
|
||||
self.Doc.saveAs(tempFile)
|
||||
|
||||
Reference in New Issue
Block a user