Change the name of the Wire object

After changing the name from DWire to Wire the test fails, because an element with the name DWire does not exists.
The name change came in with commit "917b5a505e8d5798a05c3c05cc7b4e052b2d05d5"
in file "src\Mod\Draft\Draft.py"
This commit is contained in:
apeltauer
2018-11-05 14:14:20 +01:00
committed by wmayer
parent f94445f9a9
commit abf4d4ddf2

View File

@@ -53,7 +53,7 @@ class DraftTest(unittest.TestCase):
def testWire(self):
FreeCAD.Console.PrintLog ('Checking Draft Wire...\n')
Draft.makeWire([FreeCAD.Vector(0,0,0),FreeCAD.Vector(2,0,0),FreeCAD.Vector(2,2,0)])
self.failUnless(FreeCAD.ActiveDocument.getObject("DWire"),"Draft Wire failed")
self.failUnless(FreeCAD.ActiveDocument.getObject("Wire"),"Draft Wire failed")
def testBSpline(self):
FreeCAD.Console.PrintLog ('Checking Draft BSpline...\n')