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:
Zheng, Lei
2019-11-20 08:54:15 +08:00
committed by Chris Hennes
parent 55d64d71c2
commit 27f24c069d
2 changed files with 1 additions and 2 deletions

View File

@@ -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):

View File

@@ -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)