Skip to content

Commit

Permalink
First pointless path unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
mlampert committed Nov 18, 2016
1 parent a9f246b commit dce1625
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Mod/Path/CMakeLists.txt
Expand Up @@ -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
Expand Down
41 changes: 41 additions & 0 deletions src/Mod/Path/PathTests/TestPathPost.py
@@ -0,0 +1,41 @@
# -*- coding: utf-8 -*-

# ***************************************************************************
# * *
# * Copyright (c) 2016 sliptonic <shopinthewoods@gmail.com> *
# * *
# * 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)

Empty file.
27 changes: 27 additions & 0 deletions src/Mod/Path/TestPathApp.py
@@ -0,0 +1,27 @@
# -*- coding: utf-8 -*-

# ***************************************************************************
# * *
# * Copyright (c) 2016 sliptonic <shopinthewoods@gmail.com> *
# * *
# * 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
1 change: 1 addition & 0 deletions src/Mod/Test/TestGui.py
Expand Up @@ -52,6 +52,7 @@ def Activated(self):
QtUnitGui.addTest("TestPartApp")
QtUnitGui.addTest("TestPartDesignApp")
QtUnitGui.addTest("TestPartDesignGui")
QtUnitGui.addTest("TestPathApp")
QtUnitGui.addTest("TestSpreadsheet")
QtUnitGui.addTest("TestDraft")
QtUnitGui.addTest("TestArch")
Expand Down

0 comments on commit dce1625

Please sign in to comment.