First pointless path unit test
This commit is contained in:
parent
a9f246b466
commit
dce16252dc
|
@ -73,6 +73,8 @@ SET(PathScripts_SRCS
|
||||||
PathScripts/DogboneDressup.py
|
PathScripts/DogboneDressup.py
|
||||||
PathScripts/PathPreferencesPathJob.py
|
PathScripts/PathPreferencesPathJob.py
|
||||||
PathScripts/PathPreferences.py
|
PathScripts/PathPreferences.py
|
||||||
|
PathTests/TestPathPost.py
|
||||||
|
TestPathApp.py
|
||||||
)
|
)
|
||||||
|
|
||||||
SET(PathScripts_NC_SRCS
|
SET(PathScripts_NC_SRCS
|
||||||
|
|
41
src/Mod/Path/PathTests/TestPathPost.py
Normal file
41
src/Mod/Path/PathTests/TestPathPost.py
Normal file
|
@ -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)
|
||||||
|
|
0
src/Mod/Path/PathTests/__init__.py
Normal file
0
src/Mod/Path/PathTests/__init__.py
Normal file
27
src/Mod/Path/TestPathApp.py
Normal file
27
src/Mod/Path/TestPathApp.py
Normal file
|
@ -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
|
|
@ -52,6 +52,7 @@ class TestCmd:
|
||||||
QtUnitGui.addTest("TestPartApp")
|
QtUnitGui.addTest("TestPartApp")
|
||||||
QtUnitGui.addTest("TestPartDesignApp")
|
QtUnitGui.addTest("TestPartDesignApp")
|
||||||
QtUnitGui.addTest("TestPartDesignGui")
|
QtUnitGui.addTest("TestPartDesignGui")
|
||||||
|
QtUnitGui.addTest("TestPathApp")
|
||||||
QtUnitGui.addTest("TestSpreadsheet")
|
QtUnitGui.addTest("TestSpreadsheet")
|
||||||
QtUnitGui.addTest("TestDraft")
|
QtUnitGui.addTest("TestDraft")
|
||||||
QtUnitGui.addTest("TestArch")
|
QtUnitGui.addTest("TestArch")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user