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 "684b4ab03a27231e0cc603ca815bf9ea367fd0b9"
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 36124965d1
commit d03a11ead9

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