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:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user