moving Path Tests to CAM tests

This commit is contained in:
Brad Collette
2024-03-01 14:05:23 -06:00
committed by sliptonic
parent 12a3e656cf
commit 64cbc871ee
60 changed files with 166 additions and 166 deletions

View File

@@ -9,7 +9,7 @@ endif(BUILD_GUI)
set(Path_Scripts
Init.py
PathCommands.py
TestPathApp.py
TestCAMApp.py
)
if(BUILD_GUI)
@@ -276,65 +276,65 @@ SET(Tools_Shape_SRCS
Tools/Shape/v-bit.fcstd
)
SET(PathTests_SRCS
PathTests/__init__.py
PathTests/boxtest.fcstd
PathTests/boxtest1.fcstd
PathTests/Drilling_1.FCStd
PathTests/drill_test1.FCStd
PathTests/PathTestUtils.py
PathTests/test_adaptive.fcstd
PathTests/test_profile.fcstd
PathTests/test_centroid_00.ngc
PathTests/test_filenaming.fcstd
PathTests/test_geomop.fcstd
PathTests/test_holes00.fcstd
PathTests/TestCentroidPost.py
PathTests/TestGrblPost.py
PathTests/TestLinuxCNCPost.py
PathTests/TestMach3Mach4Post.py
PathTests/TestPathAdaptive.py
PathTests/TestPathCore.py
PathTests/TestPathDepthParams.py
PathTests/TestPathDressupDogbone.py
PathTests/TestPathDressupDogboneII.py
PathTests/TestPathDressupHoldingTags.py
PathTests/TestPathDrillGenerator.py
PathTests/TestPathDrillable.py
PathTests/TestPathGeneratorDogboneII.py
PathTests/TestPathGeom.py
PathTests/TestPathHelix.py
PathTests/TestPathHelpers.py
PathTests/TestPathHelixGenerator.py
PathTests/TestPathLanguage.py
PathTests/TestPathLog.py
PathTests/TestPathOpDeburr.py
PathTests/TestPathOpUtil.py
PathTests/TestPathPost.py
PathTests/TestPathPreferences.py
PathTests/TestPathProfile.py
PathTests/TestPathPropertyBag.py
PathTests/TestPathRotationGenerator.py
PathTests/TestPathSetupSheet.py
PathTests/TestPathStock.py
PathTests/TestPathToolChangeGenerator.py
PathTests/TestPathThreadMilling.py
PathTests/TestPathThreadMillingGenerator.py
PathTests/TestPathToolBit.py
PathTests/TestPathToolController.py
PathTests/TestPathUtil.py
PathTests/TestPathVcarve.py
PathTests/TestPathVoronoi.py
PathTests/TestRefactoredCentroidPost.py
PathTests/TestRefactoredGrblPost.py
PathTests/TestRefactoredLinuxCNCPost.py
PathTests/TestRefactoredMach3Mach4Post.py
PathTests/TestRefactoredTestPost.py
PathTests/TestRefactoredTestPostGCodes.py
PathTests/TestRefactoredTestPostMCodes.py
PathTests/Tools/Bit/test-path-tool-bit-bit-00.fctb
PathTests/Tools/Library/test-path-tool-bit-library-00.fctl
PathTests/Tools/Shape/test-path-tool-bit-shape-00.fcstd
SET(Tests_SRCS
Tests/__init__.py
Tests/boxtest.fcstd
Tests/boxtest1.fcstd
Tests/Drilling_1.FCStd
Tests/drill_test1.FCStd
Tests/PathTestUtils.py
Tests/test_adaptive.fcstd
Tests/test_profile.fcstd
Tests/test_centroid_00.ngc
Tests/test_filenaming.fcstd
Tests/test_geomop.fcstd
Tests/test_holes00.fcstd
Tests/TestCentroidPost.py
Tests/TestGrblPost.py
Tests/TestLinuxCNCPost.py
Tests/TestMach3Mach4Post.py
Tests/TestPathAdaptive.py
Tests/TestPathCore.py
Tests/TestPathDepthParams.py
Tests/TestPathDressupDogbone.py
Tests/TestPathDressupDogboneII.py
Tests/TestPathDressupHoldingTags.py
Tests/TestPathDrillGenerator.py
Tests/TestPathDrillable.py
Tests/TestPathGeneratorDogboneII.py
Tests/TestPathGeom.py
Tests/TestPathHelix.py
Tests/TestPathHelpers.py
Tests/TestPathHelixGenerator.py
Tests/TestPathLanguage.py
Tests/TestPathLog.py
Tests/TestPathOpDeburr.py
Tests/TestPathOpUtil.py
Tests/TestPathPost.py
Tests/TestPathPreferences.py
Tests/TestPathProfile.py
Tests/TestPathPropertyBag.py
Tests/TestPathRotationGenerator.py
Tests/TestPathSetupSheet.py
Tests/TestPathStock.py
Tests/TestPathToolChangeGenerator.py
Tests/TestPathThreadMilling.py
Tests/TestPathThreadMillingGenerator.py
Tests/TestPathToolBit.py
Tests/TestPathToolController.py
Tests/TestPathUtil.py
Tests/TestPathVcarve.py
Tests/TestPathVoronoi.py
Tests/TestRefactoredCentroidPost.py
Tests/TestRefactoredGrblPost.py
Tests/TestRefactoredLinuxCNCPost.py
Tests/TestRefactoredMach3Mach4Post.py
Tests/TestRefactoredTestPost.py
Tests/TestRefactoredTestPostGCodes.py
Tests/TestRefactoredTestPostMCodes.py
Tests/Tools/Bit/test-path-tool-bit-bit-00.fctb
Tests/Tools/Library/test-path-tool-bit-library-00.fctl
Tests/Tools/Shape/test-path-tool-bit-shape-00.fcstd
)
SET(PathImages_Ops
@@ -397,15 +397,15 @@ ADD_CUSTOM_TARGET(PathScripts ALL
SET(test_files
${Path_Scripts}
${PathTests_SRCS}
${Tests_SRCS}
)
ADD_CUSTOM_TARGET(PathTests ALL
ADD_CUSTOM_TARGET(Tests ALL
SOURCES ${test_files}
)
fc_copy_sources(PathScripts "${CMAKE_BINARY_DIR}/Mod/CAM" ${all_files})
fc_copy_sources(PathTests "${CMAKE_BINARY_DIR}/Mod/CAM" ${test_files})
fc_copy_sources(Tests "${CMAKE_BINARY_DIR}/Mod/CAM" ${test_files})
INSTALL(
FILES
@@ -512,16 +512,16 @@ INSTALL(
INSTALL(
FILES
${PathTests_SRCS}
${Tests_SRCS}
DESTINATION
Mod/CAM/PathTests
Mod/CAM/Tests
)
INSTALL(
DIRECTORY
PathTests/Tools
Tests/Tools
DESTINATION
Mod/CAM/PathTests
Mod/CAM/Tests
)

View File

@@ -22,58 +22,58 @@
import TestApp
from PathTests.TestPathProfile import TestPathProfile
from Tests.TestPathProfile import TestPathProfile
from PathTests.TestPathAdaptive import TestPathAdaptive
from PathTests.TestPathCore import TestPathCore
from PathTests.TestPathDepthParams import depthTestCases
from PathTests.TestPathDressupDogbone import TestDressupDogbone
from PathTests.TestPathDressupDogboneII import TestDressupDogboneII
from PathTests.TestPathDressupHoldingTags import TestHoldingTags
from PathTests.TestPathDrillable import TestPathDrillable
from PathTests.TestPathDrillGenerator import TestPathDrillGenerator
from PathTests.TestPathGeneratorDogboneII import TestGeneratorDogboneII
from PathTests.TestPathGeom import TestPathGeom
from PathTests.TestPathLanguage import TestPathLanguage
from PathTests.TestPathOpDeburr import TestPathOpDeburr
from Tests.TestPathAdaptive import TestPathAdaptive
from Tests.TestPathCore import TestPathCore
from Tests.TestPathDepthParams import depthTestCases
from Tests.TestPathDressupDogbone import TestDressupDogbone
from Tests.TestPathDressupDogboneII import TestDressupDogboneII
from Tests.TestPathDressupHoldingTags import TestHoldingTags
from Tests.TestPathDrillable import TestPathDrillable
from Tests.TestPathDrillGenerator import TestPathDrillGenerator
from Tests.TestPathGeneratorDogboneII import TestGeneratorDogboneII
from Tests.TestPathGeom import TestPathGeom
from Tests.TestPathLanguage import TestPathLanguage
from Tests.TestPathOpDeburr import TestPathOpDeburr
# from PathTests.TestPathHelix import TestPathHelix
from PathTests.TestPathHelpers import TestPathHelpers
from PathTests.TestPathHelixGenerator import TestPathHelixGenerator
from PathTests.TestPathLog import TestPathLog
from PathTests.TestPathOpUtil import TestPathOpUtil
# from Tests.TestPathHelix import TestPathHelix
from Tests.TestPathHelpers import TestPathHelpers
from Tests.TestPathHelixGenerator import TestPathHelixGenerator
from Tests.TestPathLog import TestPathLog
from Tests.TestPathOpUtil import TestPathOpUtil
# from PathTests.TestPathPost import TestPathPost
from PathTests.TestPathPost import TestPathPostUtils
from PathTests.TestPathPost import TestBuildPostList
from PathTests.TestPathPost import TestOutputNameSubstitution
# from Tests.TestPathPost import TestPathPost
from Tests.TestPathPost import TestPathPostUtils
from Tests.TestPathPost import TestBuildPostList
from Tests.TestPathPost import TestOutputNameSubstitution
from PathTests.TestPathPreferences import TestPathPreferences
from PathTests.TestPathProfile import TestPathProfile
from PathTests.TestPathPropertyBag import TestPathPropertyBag
from PathTests.TestPathRotationGenerator import TestPathRotationGenerator
from PathTests.TestPathSetupSheet import TestPathSetupSheet
from PathTests.TestPathStock import TestPathStock
from PathTests.TestPathThreadMilling import TestPathThreadMilling
from PathTests.TestPathThreadMillingGenerator import TestPathThreadMillingGenerator
from PathTests.TestPathToolBit import TestPathToolBit
from PathTests.TestPathToolChangeGenerator import TestPathToolChangeGenerator
from PathTests.TestPathToolController import TestPathToolController
from PathTests.TestPathUtil import TestPathUtil
from PathTests.TestPathVcarve import TestPathVcarve
from PathTests.TestPathVoronoi import TestPathVoronoi
from Tests.TestPathPreferences import TestPathPreferences
from Tests.TestPathProfile import TestPathProfile
from Tests.TestPathPropertyBag import TestPathPropertyBag
from Tests.TestPathRotationGenerator import TestPathRotationGenerator
from Tests.TestPathSetupSheet import TestPathSetupSheet
from Tests.TestPathStock import TestPathStock
from Tests.TestPathThreadMilling import TestPathThreadMilling
from Tests.TestPathThreadMillingGenerator import TestPathThreadMillingGenerator
from Tests.TestPathToolBit import TestPathToolBit
from Tests.TestPathToolChangeGenerator import TestPathToolChangeGenerator
from Tests.TestPathToolController import TestPathToolController
from Tests.TestPathUtil import TestPathUtil
from Tests.TestPathVcarve import TestPathVcarve
from Tests.TestPathVoronoi import TestPathVoronoi
from PathTests.TestCentroidPost import TestCentroidPost
from PathTests.TestGrblPost import TestGrblPost
from PathTests.TestLinuxCNCPost import TestLinuxCNCPost
from PathTests.TestMach3Mach4Post import TestMach3Mach4Post
from PathTests.TestRefactoredCentroidPost import TestRefactoredCentroidPost
from PathTests.TestRefactoredGrblPost import TestRefactoredGrblPost
from PathTests.TestRefactoredLinuxCNCPost import TestRefactoredLinuxCNCPost
from PathTests.TestRefactoredMach3Mach4Post import TestRefactoredMach3Mach4Post
from PathTests.TestRefactoredTestPost import TestRefactoredTestPost
from PathTests.TestRefactoredTestPostGCodes import TestRefactoredTestPostGCodes
from PathTests.TestRefactoredTestPostMCodes import TestRefactoredTestPostMCodes
from Tests.TestCentroidPost import TestCentroidPost
from Tests.TestGrblPost import TestGrblPost
from Tests.TestLinuxCNCPost import TestLinuxCNCPost
from Tests.TestMach3Mach4Post import TestMach3Mach4Post
from Tests.TestRefactoredCentroidPost import TestRefactoredCentroidPost
from Tests.TestRefactoredGrblPost import TestRefactoredGrblPost
from Tests.TestRefactoredLinuxCNCPost import TestRefactoredLinuxCNCPost
from Tests.TestRefactoredMach3Mach4Post import TestRefactoredMach3Mach4Post
from Tests.TestRefactoredTestPost import TestRefactoredTestPost
from Tests.TestRefactoredTestPostGCodes import TestRefactoredTestPostGCodes
from Tests.TestRefactoredTestPostMCodes import TestRefactoredTestPostMCodes
# dummy usage to get flake8 and lgtm quiet
False if depthTestCases.__name__ else True

View File

@@ -26,7 +26,7 @@ from importlib import reload
import FreeCAD
import Path
import PathTests.PathTestUtils as PathTestUtils
import Tests.PathTestUtils as PathTestUtils
from Path.Post.scripts import centroid_post as postprocessor

View File

@@ -23,7 +23,7 @@
import FreeCAD
import Path
import PathTests.PathTestUtils as PathTestUtils
import Tests.PathTestUtils as PathTestUtils
from importlib import reload
from Path.Post.scripts import grbl_post as postprocessor

View File

@@ -23,7 +23,7 @@
import FreeCAD
import Path
import PathTests.PathTestUtils as PathTestUtils
import Tests.PathTestUtils as PathTestUtils
from importlib import reload
from Path.Post.scripts import linuxcnc_post as postprocessor

View File

@@ -26,7 +26,7 @@ from importlib import reload
import FreeCAD
import Path
import PathTests.PathTestUtils as PathTestUtils
import Tests.PathTestUtils as PathTestUtils
from Path.Post.scripts import mach3_mach4_post as postprocessor

View File

@@ -26,7 +26,7 @@ import FreeCAD
import Part
import Path.Op.Adaptive as PathAdaptive
import Path.Main.Job as PathJob
from PathTests.PathTestUtils import PathTestBase
from Tests.PathTestUtils import PathTestBase
if FreeCAD.GuiUp:
import Path.Main.Gui.Job as PathJobGui
@@ -54,7 +54,7 @@ class TestPathAdaptive(PathTestBase):
# Open existing FreeCAD document with test geometry
cls.needsInit = False
cls.doc = FreeCAD.open(
FreeCAD.getHomePath() + "Mod/CAM/PathTests/test_adaptive.fcstd"
FreeCAD.getHomePath() + "Mod/CAM/Tests/test_adaptive.fcstd"
)
# Create Job object, adding geometry objects from file opened above

View File

@@ -22,7 +22,7 @@
import FreeCAD
import Path
from PathTests.PathTestUtils import PathTestBase
from Tests.PathTestUtils import PathTestBase
class TestPathCore(PathTestBase):

View File

@@ -26,7 +26,7 @@ import Path.Dressup.Gui.Dogbone as PathDressupDogbone
import Path.Main.Job as PathJob
import Path.Op.Profile as PathProfile
from PathTests.PathTestUtils import PathTestBase
from Tests.PathTestUtils import PathTestBase
class TestProfile:

View File

@@ -25,7 +25,7 @@ import Path
import Path.Base.Generator.dogboneII as dogboneII
import Path.Base.Language as PathLanguage
import Path.Dressup.DogboneII
import PathTests.PathTestUtils as PathTestUtils
import Tests.PathTestUtils as PathTestUtils
import math
PI = math.pi

View File

@@ -20,7 +20,7 @@
# * *
# ***************************************************************************
import PathTests.PathTestUtils as PathTestUtils
import Tests.PathTestUtils as PathTestUtils
import math
from FreeCAD import Vector

View File

@@ -24,7 +24,7 @@ import FreeCAD
import Part
import Path
import Path.Base.Generator.drill as generator
import PathTests.PathTestUtils as PathTestUtils
import Tests.PathTestUtils as PathTestUtils
Path.Log.setLevel(Path.Log.Level.INFO, Path.Log.thisModule())
Path.Log.trackModule(Path.Log.thisModule())

View File

@@ -23,7 +23,7 @@
import FreeCAD as App
import Path
import Path.Base.Drillable as Drillable
import PathTests.PathTestUtils as PathTestUtils
import Tests.PathTestUtils as PathTestUtils
if False:
@@ -35,7 +35,7 @@ else:
class TestPathDrillable(PathTestUtils.PathTestBase):
def setUp(self):
self.doc = App.open(App.getHomePath() + "/Mod/CAM/PathTests/Drilling_1.FCStd")
self.doc = App.open(App.getHomePath() + "/Mod/CAM/Tests/Drilling_1.FCStd")
self.obj = self.doc.getObject("Pocket011")
def tearDown(self):

View File

@@ -24,7 +24,7 @@ import FreeCAD
import Path
import Path.Base.Generator.dogboneII as dogboneII
import Path.Base.Language as PathLanguage
import PathTests.PathTestUtils as PathTestUtils
import Tests.PathTestUtils as PathTestUtils
import math

View File

@@ -25,7 +25,7 @@ import Path
import math
from FreeCAD import Vector
from PathTests.PathTestUtils import PathTestBase
from Tests.PathTestUtils import PathTestBase
class TestPathGeom(PathTestBase):

View File

@@ -25,7 +25,7 @@ import FreeCAD
import Path
import Path.Main.Job as PathJob
import Path.Op.Helix as PathHelix
import PathTests.PathTestUtils as PathTestUtils
import Tests.PathTestUtils as PathTestUtils
Path.Log.setLevel(Path.Log.Level.INFO, Path.Log.thisModule())
# Path.Log.trackModule(Path.Log.thisModule())
@@ -37,7 +37,7 @@ class TestPathHelix(PathTestUtils.PathTestBase):
def setUp(self):
self.clone = None
self.doc = FreeCAD.open(
FreeCAD.getHomePath() + "Mod/CAM/PathTests/test_holes00.fcstd"
FreeCAD.getHomePath() + "Mod/CAM/Tests/test_holes00.fcstd"
)
self.job = PathJob.Create("Job", [self.doc.Body])
@@ -89,7 +89,7 @@ class TestPathHelix(PathTestUtils.PathTestBase):
for deg in range(self.RotateBy, 360, self.RotateBy):
self.tearDown()
self.doc = FreeCAD.open(
FreeCAD.getHomePath() + "Mod/CAM/PathTests/test_holes00.fcstd"
FreeCAD.getHomePath() + "Mod/CAM/Tests/test_holes00.fcstd"
)
self.doc.Body.Placement.Rotation = FreeCAD.Rotation(deg, 0, 0)
@@ -114,7 +114,7 @@ class TestPathHelix(PathTestUtils.PathTestBase):
for deg in range(self.RotateBy, 360, self.RotateBy):
self.tearDown()
self.doc = FreeCAD.open(
FreeCAD.getHomePath() + "Mod/CAM/PathTests/test_holes00.fcstd"
FreeCAD.getHomePath() + "Mod/CAM/Tests/test_holes00.fcstd"
)
self.clone = Draft.clone(self.doc.Body)
self.clone.Placement.Rotation = FreeCAD.Rotation(deg, 0, 0)

View File

@@ -24,7 +24,7 @@ import FreeCAD
import Part
import Path
import Path.Base.Generator.helix as generator
import PathTests.PathTestUtils as PathTestUtils
import Tests.PathTestUtils as PathTestUtils
Path.Log.setLevel(Path.Log.Level.INFO, Path.Log.thisModule())

View File

@@ -29,7 +29,7 @@ import Path.Tool.Bit as PathToolBit
import Path.Tool.Controller as PathToolController
import PathScripts.PathUtils as PathUtils
from PathTests.PathTestUtils import PathTestBase
from Tests.PathTestUtils import PathTestBase
def createTool(name="t1", diameter=1.75):

View File

@@ -21,7 +21,7 @@
# ***************************************************************************
import Path.Base.Language as PathLanguage
import PathTests.PathTestUtils as PathTestUtils
import Tests.PathTestUtils as PathTestUtils
import math
PI = math.pi

View File

@@ -23,7 +23,7 @@
import Path
import Path.Op.Deburr as PathDeburr
import Path.Tool.Bit as PathToolBit
import PathTests.PathTestUtils as PathTestUtils
import Tests.PathTestUtils as PathTestUtils
Path.Log.setLevel(Path.Log.Level.INFO, Path.Log.thisModule())
# Path.Log.trackModule(Path.Log.thisModule())

View File

@@ -24,7 +24,7 @@ import FreeCAD
import Part
import Path
import Path.Op.Util as PathOpUtil
import PathTests.PathTestUtils as PathTestUtils
import Tests.PathTestUtils as PathTestUtils
import math
from FreeCAD import Vector
@@ -32,7 +32,7 @@ from FreeCAD import Vector
Path.Log.setLevel(Path.Log.Level.INFO, Path.Log.thisModule())
# Path.Log.trackModule(Path.Log.thisModule())
DOC = FreeCAD.getHomePath() + "Mod/CAM/PathTests/test_geomop.fcstd"
DOC = FreeCAD.getHomePath() + "Mod/CAM/Tests/test_geomop.fcstd"
def getWire(obj, nr=0):
return obj.Tip.Profile[0].Shape.Wires[nr]

View File

@@ -59,7 +59,7 @@ class TestPathPost(unittest.TestCase):
#
# You can run just this test using:
# ./FreeCAD -c -t PathTests.TestPathPost.TestPathPost.test_postprocessors
# ./FreeCAD -c -t Tests.TestPathPost.TestPathPost.test_postprocessors
#
def test_postprocessors(self):
"""Test the postprocessors."""
@@ -115,7 +115,7 @@ class TestPathPost(unittest.TestCase):
# Enough of the path to where the tests are stored so that
# they can be found by the python interpreter.
#
PATHTESTS_LOCATION = "Mod/CAM/PathTests"
PATHTESTS_LOCATION = "Mod/CAM/Tests"
#
# The following code tries to re-use an open FreeCAD document
# as much as possible. It compares the current document with
@@ -266,7 +266,7 @@ class TestBuildPostList(unittest.TestCase):
"""
def setUp(self):
self.testfile = FreeCAD.getHomePath() + "Mod/CAM/PathTests/test_filenaming.fcstd"
self.testfile = FreeCAD.getHomePath() + "Mod/CAM/Tests/test_filenaming.fcstd"
self.doc = FreeCAD.open(self.testfile)
self.job = self.doc.getObjectsByLabel("MainJob")[0]
@@ -394,7 +394,7 @@ class TestOutputNameSubstitution(unittest.TestCase):
"""
def setUp(self):
self.testfile = FreeCAD.getHomePath() + "Mod/CAM/PathTests/test_filenaming.fcstd"
self.testfile = FreeCAD.getHomePath() + "Mod/CAM/Tests/test_filenaming.fcstd"
self.testfilepath, self.testfilename = os.path.split(self.testfile)
self.testfilename, self.ext = os.path.splitext(self.testfilename)

View File

@@ -21,7 +21,7 @@
# ***************************************************************************
import Path
import PathTests.PathTestUtils as PathTestUtils
import Tests.PathTestUtils as PathTestUtils
class TestPathPreferences(PathTestUtils.PathTestBase):

View File

@@ -27,8 +27,8 @@ import FreeCAD
import Part
import Path.Op.Profile as PathProfile
import Path.Main.Job as PathJob
from PathTests.PathTestUtils import PathTestBase
from PathTests.TestPathAdaptive import getGcodeMoves
from Tests.PathTestUtils import PathTestBase
from Tests.TestPathAdaptive import getGcodeMoves
if FreeCAD.GuiUp:
import Path.Main.Gui.Job as PathJobGui
@@ -55,7 +55,7 @@ class TestPathProfile(PathTestBase):
# Open existing FreeCAD document with test geometry
cls.needsInit = False
cls.doc = FreeCAD.open(
FreeCAD.getHomePath() + "Mod/CAM/PathTests/test_profile.fcstd"
FreeCAD.getHomePath() + "Mod/CAM/Tests/test_profile.fcstd"
)
# Create Job object, adding geometry objects from file opened above

View File

@@ -22,7 +22,7 @@
import FreeCAD
import Path.Base.PropertyBag as PathPropertyBag
import PathTests.PathTestUtils as PathTestUtils
import Tests.PathTestUtils as PathTestUtils
class TestPathPropertyBag(PathTestUtils.PathTestBase):

View File

@@ -23,7 +23,7 @@
import FreeCAD
import Path
import Path.Base.Generator.rotation as generator
import PathTests.PathTestUtils as PathTestUtils
import Tests.PathTestUtils as PathTestUtils
import numpy as np
Path.Log.setLevel(Path.Log.Level.INFO, Path.Log.thisModule())

View File

@@ -28,7 +28,7 @@ import sys
# Path.Log.setLevel(Path.Log.Level.DEBUG, Path.Log.thisModule())
from PathTests.PathTestUtils import PathTestBase
from Tests.PathTestUtils import PathTestBase
def refstring(string):

View File

@@ -23,7 +23,7 @@
import FreeCAD
import Path.Main.Stock as PathStock
from PathTests.PathTestUtils import PathTestBase
from Tests.PathTestUtils import PathTestBase
class FakeJobProxy:

View File

@@ -25,7 +25,7 @@ import Path
import Path.Op.ThreadMilling as PathThreadMilling
import math
from PathTests.PathTestUtils import PathTestBase
from Tests.PathTestUtils import PathTestBase
class TestObject(object):

View File

@@ -24,7 +24,7 @@ import FreeCAD
import Path.Base.Generator.threadmilling as threadmilling
import math
from PathTests.PathTestUtils import PathTestBase
from Tests.PathTestUtils import PathTestBase
def radii(internal, major, minor, toolDia, toolCrest):

View File

@@ -21,7 +21,7 @@
# ***************************************************************************
import Path.Tool.Bit as PathToolBit
import PathTests.PathTestUtils as PathTestUtils
import Tests.PathTestUtils as PathTestUtils
import glob
import os

View File

@@ -22,7 +22,7 @@
import Path
import Path.Base.Generator.toolchange as generator
import PathTests.PathTestUtils as PathTestUtils
import Tests.PathTestUtils as PathTestUtils
Path.Log.setLevel(Path.Log.Level.DEBUG, Path.Log.thisModule())
Path.Log.trackModule(Path.Log.thisModule())

View File

@@ -25,7 +25,7 @@ import Path
import Path.Tool.Bit as PathToolBit
import Path.Tool.Controller as PathToolController
from PathTests.PathTestUtils import PathTestBase
from Tests.PathTestUtils import PathTestBase
class TestPathToolController(PathTestBase):

View File

@@ -24,7 +24,7 @@ import FreeCAD
import Path.Base.Util as PathUtil
import TestSketcherApp
from PathTests.PathTestUtils import PathTestBase
from Tests.PathTestUtils import PathTestBase
class TestPathUtil(PathTestBase):

View File

@@ -25,7 +25,7 @@ import Path.Op.Vcarve as PathVcarve
import Path.Tool.Bit as PathToolBit
import math
from PathTests.PathTestUtils import PathTestBase
from Tests.PathTestUtils import PathTestBase
class VbitTool(object):

View File

@@ -23,7 +23,7 @@
import FreeCAD
import Part
import Path
import PathTests.PathTestUtils as PathTestUtils
import Tests.PathTestUtils as PathTestUtils
vd = None

View File

@@ -26,7 +26,7 @@ from importlib import reload
import FreeCAD
import Path
import PathTests.PathTestUtils as PathTestUtils
import Tests.PathTestUtils as PathTestUtils
from Path.Post.scripts import refactored_centroid_post as postprocessor

View File

@@ -26,7 +26,7 @@ from importlib import reload
import FreeCAD
import Path
import PathTests.PathTestUtils as PathTestUtils
import Tests.PathTestUtils as PathTestUtils
from Path.Post.scripts import refactored_grbl_post as postprocessor

View File

@@ -26,7 +26,7 @@ from importlib import reload
import FreeCAD
import Path
import PathTests.PathTestUtils as PathTestUtils
import Tests.PathTestUtils as PathTestUtils
from Path.Post.scripts import refactored_linuxcnc_post as postprocessor

View File

@@ -26,7 +26,7 @@ from importlib import reload
import FreeCAD
import Path
import PathTests.PathTestUtils as PathTestUtils
import Tests.PathTestUtils as PathTestUtils
from Path.Post.scripts import refactored_mach3_mach4_post as postprocessor
Path.Log.setLevel(Path.Log.Level.DEBUG, Path.Log.thisModule())

View File

@@ -24,7 +24,7 @@
import FreeCAD
import Path
import PathTests.PathTestUtils as PathTestUtils
import Tests.PathTestUtils as PathTestUtils
from Path.Post.scripts import refactored_test_post as postprocessor

View File

@@ -24,7 +24,7 @@
import FreeCAD
import Path
import PathTests.PathTestUtils as PathTestUtils
import Tests.PathTestUtils as PathTestUtils
from Path.Post.scripts import refactored_test_post as postprocessor

View File

@@ -24,7 +24,7 @@
import FreeCAD
import Path
import PathTests.PathTestUtils as PathTestUtils
import Tests.PathTestUtils as PathTestUtils
from Path.Post.scripts import refactored_test_post as postprocessor