diff --git a/src/Mod/Path/CMakeLists.txt b/src/Mod/Path/CMakeLists.txt index 729ecf124..283f87a05 100644 --- a/src/Mod/Path/CMakeLists.txt +++ b/src/Mod/Path/CMakeLists.txt @@ -73,6 +73,8 @@ SET(PathScripts_SRCS PathScripts/DogboneDressup.py PathScripts/PathPreferencesPathJob.py PathScripts/PathPreferences.py + PathTests/TestPathPost.py + TestPathApp.py ) SET(PathScripts_NC_SRCS diff --git a/src/Mod/Path/PathTests/TestPathPost.py b/src/Mod/Path/PathTests/TestPathPost.py new file mode 100644 index 000000000..1907fccb1 --- /dev/null +++ b/src/Mod/Path/PathTests/TestPathPost.py @@ -0,0 +1,41 @@ +# -*- coding: utf-8 -*- + +# *************************************************************************** +# * * +# * Copyright (c) 2016 sliptonic * +# * * +# * This program is free software; you can redistribute it and/or modify * +# * it under the terms of the GNU Lesser General Public License (LGPL) * +# * as published by the Free Software Foundation; either version 2 of * +# * the License, or (at your option) any later version. * +# * for detail see the LICENCE text file. * +# * * +# * This program is distributed in the hope that it will be useful, * +# * but WITHOUT ANY WARRANTY; without even the implied warranty of * +# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * +# * GNU Library General Public License for more details. * +# * * +# * You should have received a copy of the GNU Library General Public * +# * License along with this program; if not, write to the Free Software * +# * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * +# * USA * +# * * +# *************************************************************************** + +import FreeCAD +import unittest + +from PathScripts import PathPost + +class PathPostTestCases(unittest.TestCase): + def setUp(self): + self.doc = FreeCAD.newDocument("PathPostTest") + + def tearDown(self): + FreeCAD.closeDocument("PathPostTest") + + def testCommand(self): + self.box = self.doc.addObject("Part::Box", "Box") + print("Running command test") + self.failUnless(True) + diff --git a/src/Mod/Path/PathTests/__init__.py b/src/Mod/Path/PathTests/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/src/Mod/Path/TestPathApp.py b/src/Mod/Path/TestPathApp.py new file mode 100644 index 000000000..88850ea8d --- /dev/null +++ b/src/Mod/Path/TestPathApp.py @@ -0,0 +1,27 @@ +# -*- coding: utf-8 -*- + +# *************************************************************************** +# * * +# * Copyright (c) 2016 sliptonic * +# * * +# * This program is free software; you can redistribute it and/or modify * +# * it under the terms of the GNU Lesser General Public License (LGPL) * +# * as published by the Free Software Foundation; either version 2 of * +# * the License, or (at your option) any later version. * +# * for detail see the LICENCE text file. * +# * * +# * This program is distributed in the hope that it will be useful, * +# * but WITHOUT ANY WARRANTY; without even the implied warranty of * +# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * +# * GNU Library General Public License for more details. * +# * * +# * You should have received a copy of the GNU Library General Public * +# * License along with this program; if not, write to the Free Software * +# * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * +# * USA * +# * * +# *************************************************************************** + +import TestApp + +from PathTests.TestPathPost import PathPostTestCases diff --git a/src/Mod/Test/TestGui.py b/src/Mod/Test/TestGui.py index 8e62066d5..013871fad 100644 --- a/src/Mod/Test/TestGui.py +++ b/src/Mod/Test/TestGui.py @@ -52,6 +52,7 @@ class TestCmd: QtUnitGui.addTest("TestPartApp") QtUnitGui.addTest("TestPartDesignApp") QtUnitGui.addTest("TestPartDesignGui") + QtUnitGui.addTest("TestPathApp") QtUnitGui.addTest("TestSpreadsheet") QtUnitGui.addTest("TestDraft") QtUnitGui.addTest("TestArch")