From abf4d4ddf2178e610ff88391bec6c31c7b9fa8df Mon Sep 17 00:00:00 2001 From: apeltauer Date: Mon, 5 Nov 2018 14:14:20 +0100 Subject: [PATCH] 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" --- src/Mod/Draft/TestDraft.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Draft/TestDraft.py b/src/Mod/Draft/TestDraft.py index e77a880569..6b819096b3 100644 --- a/src/Mod/Draft/TestDraft.py +++ b/src/Mod/Draft/TestDraft.py @@ -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')