CAM: rename "Tests" to "CAMTests" to avoid python name conflicts
This commit is contained in:
committed by
Yorik van Havre
parent
815375a4a0
commit
2ff4914fd8
@@ -36,14 +36,14 @@ import unittest
|
||||
from unittest.mock import patch, MagicMock
|
||||
import urllib
|
||||
import tempfile
|
||||
from Tests.PathTestUtils import PathTestBase
|
||||
from CAMTests.PathTestUtils import PathTestBase
|
||||
|
||||
|
||||
class TestCAMSanity(PathTestBase):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
FreeCAD.ConfigSet("SuppressRecomputeRequiredDialog", "True")
|
||||
cls.doc = FreeCAD.open(FreeCAD.getHomePath() + "/Mod/CAM/Tests/boxtest.fcstd")
|
||||
cls.doc = FreeCAD.open(FreeCAD.getHomePath() + "/Mod/CAM/CAMTests/boxtest.fcstd")
|
||||
FreeCAD.ConfigSet("SuppressRecomputeRequiredDialog", "")
|
||||
cls.job = cls.doc.getObject("Job")
|
||||
|
||||
@@ -303,7 +303,7 @@ class TestCAMSanity(PathTestBase):
|
||||
# gcode = processor.export(objs, filename, postArgs)
|
||||
# return (gcode, filename)
|
||||
|
||||
# doc = FreeCAD.open(FreeCAD.getHomePath() + "/Mod/CAM/Tests/boxtest.fcstd")
|
||||
# doc = FreeCAD.open(FreeCAD.getHomePath() + "/Mod/CAM/CAMTests/boxtest.fcstd")
|
||||
# job = self.doc.getObject("Job")
|
||||
|
||||
# postlist = PathPost.buildPostList(job)
|
||||
@@ -26,7 +26,7 @@ from importlib import reload
|
||||
import FreeCAD
|
||||
|
||||
import Path
|
||||
import Tests.PathTestUtils as PathTestUtils
|
||||
import CAMTests.PathTestUtils as PathTestUtils
|
||||
from Path.Post.scripts import centroid_post as postprocessor
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
import FreeCAD
|
||||
|
||||
import Path
|
||||
import Tests.PathTestUtils as PathTestUtils
|
||||
import CAMTests.PathTestUtils as PathTestUtils
|
||||
from importlib import reload
|
||||
from Path.Post.scripts import grbl_post as postprocessor
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
import FreeCAD
|
||||
|
||||
import Path
|
||||
import Tests.PathTestUtils as PathTestUtils
|
||||
import CAMTests.PathTestUtils as PathTestUtils
|
||||
from importlib import reload
|
||||
from Path.Post.scripts import linuxcnc_post as postprocessor
|
||||
|
||||
@@ -26,7 +26,7 @@ from importlib import reload
|
||||
import FreeCAD
|
||||
|
||||
import Path
|
||||
import Tests.PathTestUtils as PathTestUtils
|
||||
import CAMTests.PathTestUtils as PathTestUtils
|
||||
from Path.Post.scripts import mach3_mach4_post as postprocessor
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ import FreeCAD
|
||||
import Part
|
||||
import Path.Op.Adaptive as PathAdaptive
|
||||
import Path.Main.Job as PathJob
|
||||
from Tests.PathTestUtils import PathTestBase
|
||||
from CAMTests.PathTestUtils import PathTestBase
|
||||
|
||||
if FreeCAD.GuiUp:
|
||||
import Path.Main.Gui.Job as PathJobGui
|
||||
@@ -53,7 +53,7 @@ class TestPathAdaptive(PathTestBase):
|
||||
# Open existing FreeCAD document with test geometry
|
||||
cls.needsInit = False
|
||||
FreeCAD.ConfigSet("SuppressRecomputeRequiredDialog", "True")
|
||||
cls.doc = FreeCAD.open(FreeCAD.getHomePath() + "Mod/CAM/Tests/test_adaptive.fcstd")
|
||||
cls.doc = FreeCAD.open(FreeCAD.getHomePath() + "Mod/CAM/CAMTests/test_adaptive.fcstd")
|
||||
FreeCAD.ConfigSet("SuppressRecomputeRequiredDialog", "")
|
||||
|
||||
# Create Job object, adding geometry objects from file opened above
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
import FreeCAD
|
||||
import Path
|
||||
from Tests.PathTestUtils import PathTestBase
|
||||
from CAMTests.PathTestUtils import PathTestBase
|
||||
|
||||
|
||||
class TestPathCore(PathTestBase):
|
||||
@@ -26,7 +26,7 @@ import Path.Dressup.Gui.Dogbone as PathDressupDogbone
|
||||
import Path.Main.Job as PathJob
|
||||
import Path.Op.Profile as PathProfile
|
||||
|
||||
from Tests.PathTestUtils import PathTestBase
|
||||
from CAMTests.PathTestUtils import PathTestBase
|
||||
|
||||
|
||||
class TestProfile:
|
||||
@@ -25,7 +25,7 @@ import Path
|
||||
import Path.Base.Generator.dogboneII as dogboneII
|
||||
import Path.Base.Language as PathLanguage
|
||||
import Path.Dressup.DogboneII
|
||||
import Tests.PathTestUtils as PathTestUtils
|
||||
import CAMTests.PathTestUtils as PathTestUtils
|
||||
import math
|
||||
|
||||
PI = math.pi
|
||||
@@ -20,7 +20,7 @@
|
||||
# * *
|
||||
# ***************************************************************************
|
||||
|
||||
import Tests.PathTestUtils as PathTestUtils
|
||||
import CAMTests.PathTestUtils as PathTestUtils
|
||||
import math
|
||||
|
||||
from FreeCAD import Vector
|
||||
@@ -24,7 +24,7 @@ import FreeCAD
|
||||
import Part
|
||||
import Path
|
||||
import Path.Base.Generator.drill as generator
|
||||
import Tests.PathTestUtils as PathTestUtils
|
||||
import CAMTests.PathTestUtils as PathTestUtils
|
||||
|
||||
Path.Log.setLevel(Path.Log.Level.INFO, Path.Log.thisModule())
|
||||
Path.Log.trackModule(Path.Log.thisModule())
|
||||
@@ -23,7 +23,7 @@
|
||||
import FreeCAD as App
|
||||
import Path
|
||||
import Path.Base.Drillable as Drillable
|
||||
import Tests.PathTestUtils as PathTestUtils
|
||||
import CAMTests.PathTestUtils as PathTestUtils
|
||||
|
||||
|
||||
if False:
|
||||
@@ -36,7 +36,7 @@ else:
|
||||
class TestPathDrillable(PathTestUtils.PathTestBase):
|
||||
def setUp(self):
|
||||
App.ConfigSet("SuppressRecomputeRequiredDialog", "True")
|
||||
self.doc = App.open(App.getHomePath() + "/Mod/CAM/Tests/Drilling_1.FCStd")
|
||||
self.doc = App.open(App.getHomePath() + "/Mod/CAM/CAMTests/Drilling_1.FCStd")
|
||||
App.ConfigSet("SuppressRecomputeRequiredDialog", "")
|
||||
self.obj = self.doc.getObject("Pocket011")
|
||||
|
||||
@@ -24,7 +24,7 @@ import FreeCAD
|
||||
import Path
|
||||
import Path.Base.Generator.dogboneII as dogboneII
|
||||
import Path.Base.Language as PathLanguage
|
||||
import Tests.PathTestUtils as PathTestUtils
|
||||
import CAMTests.PathTestUtils as PathTestUtils
|
||||
import math
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ import Path
|
||||
import math
|
||||
|
||||
from FreeCAD import Vector
|
||||
from Tests.PathTestUtils import PathTestBase
|
||||
from CAMTests.PathTestUtils import PathTestBase
|
||||
|
||||
|
||||
class TestPathGeom(PathTestBase):
|
||||
@@ -25,7 +25,7 @@ import FreeCAD
|
||||
import Path
|
||||
import Path.Main.Job as PathJob
|
||||
import Path.Op.Helix as PathHelix
|
||||
import Tests.PathTestUtils as PathTestUtils
|
||||
import CAMTests.PathTestUtils as PathTestUtils
|
||||
|
||||
Path.Log.setLevel(Path.Log.Level.INFO, Path.Log.thisModule())
|
||||
# Path.Log.trackModule(Path.Log.thisModule())
|
||||
@@ -36,7 +36,7 @@ class TestPathHelix(PathTestUtils.PathTestBase):
|
||||
|
||||
def setUp(self):
|
||||
self.clone = None
|
||||
self.doc = FreeCAD.open(FreeCAD.getHomePath() + "Mod/CAM/Tests/test_holes00.fcstd")
|
||||
self.doc = FreeCAD.open(FreeCAD.getHomePath() + "Mod/CAM/CAMTests/test_holes00.fcstd")
|
||||
self.job = PathJob.Create("Job", [self.doc.Body])
|
||||
|
||||
def tearDown(self):
|
||||
@@ -84,7 +84,7 @@ class TestPathHelix(PathTestUtils.PathTestBase):
|
||||
|
||||
for deg in range(self.RotateBy, 360, self.RotateBy):
|
||||
self.tearDown()
|
||||
self.doc = FreeCAD.open(FreeCAD.getHomePath() + "Mod/CAM/Tests/test_holes00.fcstd")
|
||||
self.doc = FreeCAD.open(FreeCAD.getHomePath() + "Mod/CAM/CAMTests/test_holes00.fcstd")
|
||||
self.doc.Body.Placement.Rotation = FreeCAD.Rotation(deg, 0, 0)
|
||||
|
||||
self.job = PathJob.Create("Job", [self.doc.Body])
|
||||
@@ -107,7 +107,7 @@ class TestPathHelix(PathTestUtils.PathTestBase):
|
||||
"""Verify Helix generates proper holes for rotated clone base model"""
|
||||
for deg in range(self.RotateBy, 360, self.RotateBy):
|
||||
self.tearDown()
|
||||
self.doc = FreeCAD.open(FreeCAD.getHomePath() + "Mod/CAM/Tests/test_holes00.fcstd")
|
||||
self.doc = FreeCAD.open(FreeCAD.getHomePath() + "Mod/CAM/CAMTests/test_holes00.fcstd")
|
||||
self.clone = Draft.clone(self.doc.Body)
|
||||
self.clone.Placement.Rotation = FreeCAD.Rotation(deg, 0, 0)
|
||||
|
||||
@@ -24,7 +24,7 @@ import FreeCAD
|
||||
import Part
|
||||
import Path
|
||||
import Path.Base.Generator.helix as generator
|
||||
import Tests.PathTestUtils as PathTestUtils
|
||||
import CAMTests.PathTestUtils as PathTestUtils
|
||||
|
||||
|
||||
Path.Log.setLevel(Path.Log.Level.INFO, Path.Log.thisModule())
|
||||
@@ -29,7 +29,7 @@ import Path.Tool.Bit as PathToolBit
|
||||
import Path.Tool.Controller as PathToolController
|
||||
import PathScripts.PathUtils as PathUtils
|
||||
|
||||
from Tests.PathTestUtils import PathTestBase
|
||||
from CAMTests.PathTestUtils import PathTestBase
|
||||
|
||||
|
||||
def createTool(name="t1", diameter=1.75):
|
||||
@@ -21,7 +21,7 @@
|
||||
# ***************************************************************************
|
||||
|
||||
import Path.Base.Language as PathLanguage
|
||||
import Tests.PathTestUtils as PathTestUtils
|
||||
import CAMTests.PathTestUtils as PathTestUtils
|
||||
import math
|
||||
|
||||
PI = math.pi
|
||||
@@ -23,7 +23,7 @@
|
||||
import Path
|
||||
import Path.Op.Deburr as PathDeburr
|
||||
import Path.Tool.Bit as PathToolBit
|
||||
import Tests.PathTestUtils as PathTestUtils
|
||||
import CAMTests.PathTestUtils as PathTestUtils
|
||||
|
||||
Path.Log.setLevel(Path.Log.Level.INFO, Path.Log.thisModule())
|
||||
# Path.Log.trackModule(Path.Log.thisModule())
|
||||
@@ -24,7 +24,7 @@ import FreeCAD
|
||||
import Part
|
||||
import Path
|
||||
import Path.Op.Util as PathOpUtil
|
||||
import Tests.PathTestUtils as PathTestUtils
|
||||
import CAMTests.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/Tests/test_geomop.fcstd"
|
||||
DOC = FreeCAD.getHomePath() + "Mod/CAM/CAMTests/test_geomop.fcstd"
|
||||
|
||||
|
||||
def getWire(obj, nr=0):
|
||||
@@ -83,12 +83,12 @@ class TestFileNameGenerator(unittest.TestCase):
|
||||
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
# cls.doc = FreeCAD.open(FreeCAD.getHomePath() + "/Mod/CAM/Tests/boxtest.fcstd")
|
||||
# cls.doc = FreeCAD.open(FreeCAD.getHomePath() + "/Mod/CAM/CAMTests/boxtest.fcstd")
|
||||
# cls.job = cls.doc.getObject("Job")
|
||||
|
||||
FreeCAD.ConfigSet("SuppressRecomputeRequiredDialog", "True")
|
||||
|
||||
cls.testfile = FreeCAD.getHomePath() + "Mod/CAM/Tests/test_filenaming.fcstd"
|
||||
cls.testfile = FreeCAD.getHomePath() + "Mod/CAM/CAMTests/test_filenaming.fcstd"
|
||||
cls.testfilepath, cls.testfilename = os.path.split(cls.testfile)
|
||||
cls.testfilename, cls.ext = os.path.splitext(cls.testfilename)
|
||||
|
||||
@@ -120,7 +120,7 @@ class TestFileNameGenerator(unittest.TestCase):
|
||||
# self.assertEqual(generated_filename, expected_filename)
|
||||
|
||||
# def setUp(self):
|
||||
# self.testfile = FreeCAD.getHomePath() + "Mod/CAM/Tests/test_filenaming.fcstd"
|
||||
# self.testfile = FreeCAD.getHomePath() + "Mod/CAM/CAMTests/test_filenaming.fcstd"
|
||||
# self.testfilepath, self.testfilename = os.path.split(self.testfile)
|
||||
# self.testfilename, self.ext = os.path.splitext(self.testfilename)
|
||||
|
||||
@@ -276,7 +276,7 @@ class TestResolvingPostProcessorName(unittest.TestCase):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
FreeCAD.ConfigSet("SuppressRecomputeRequiredDialog", "True")
|
||||
cls.doc = FreeCAD.open(FreeCAD.getHomePath() + "/Mod/CAM/Tests/boxtest.fcstd")
|
||||
cls.doc = FreeCAD.open(FreeCAD.getHomePath() + "/Mod/CAM/CAMTests/boxtest.fcstd")
|
||||
cls.job = cls.doc.getObject("Job")
|
||||
|
||||
@classmethod
|
||||
@@ -333,7 +333,7 @@ class TestPostProcessorFactory(unittest.TestCase):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
FreeCAD.ConfigSet("SuppressRecomputeRequiredDialog", "True")
|
||||
cls.doc = FreeCAD.open(FreeCAD.getHomePath() + "/Mod/CAM/Tests/boxtest.fcstd")
|
||||
cls.doc = FreeCAD.open(FreeCAD.getHomePath() + "/Mod/CAM/CAMTests/boxtest.fcstd")
|
||||
cls.job = cls.doc.getObject("Job")
|
||||
|
||||
@classmethod
|
||||
@@ -367,7 +367,7 @@ class TestPostProcessorClass(unittest.TestCase):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
FreeCAD.ConfigSet("SuppressRecomputeRequiredDialog", "True")
|
||||
cls.doc = FreeCAD.open(FreeCAD.getHomePath() + "/Mod/CAM/Tests/boxtest.fcstd")
|
||||
cls.doc = FreeCAD.open(FreeCAD.getHomePath() + "/Mod/CAM/CAMTests/boxtest.fcstd")
|
||||
cls.job = cls.doc.getObject("Job")
|
||||
|
||||
@classmethod
|
||||
@@ -407,7 +407,7 @@ class TestPostProcessorClass(unittest.TestCase):
|
||||
# """Test old-school posts"""
|
||||
|
||||
# def setUp(self):
|
||||
# self.doc = FreeCAD.open(FreeCAD.getHomePath() + "/Mod/CAM/Tests/boxtest.fcstd")
|
||||
# self.doc = FreeCAD.open(FreeCAD.getHomePath() + "/Mod/CAM/CAMTests/boxtest.fcstd")
|
||||
# self.job = self.doc.getObject("Job")
|
||||
# post = PostProcessorFactory.get_post_processor(self.job, "linuxcnc")
|
||||
# results = post.export()
|
||||
@@ -417,7 +417,7 @@ class TestPostProcessorClass(unittest.TestCase):
|
||||
|
||||
##
|
||||
## You can run just this test using:
|
||||
## ./FreeCAD -c -t Tests.TestPathPost.TestPathPost.test_postprocessors
|
||||
## ./FreeCAD -c -t CAMTests.TestPathPost.TestPathPost.test_postprocessors
|
||||
##
|
||||
# def test_postprocessors(self):
|
||||
# """Test the postprocessors."""
|
||||
@@ -473,7 +473,7 @@ class TestPostProcessorClass(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/Tests"
|
||||
# PATHTESTS_LOCATION = "Mod/CAM/CAMTests"
|
||||
# #
|
||||
# # The following code tries to re-use an open FreeCAD document
|
||||
# # as much as possible. It compares the current document with
|
||||
@@ -613,7 +613,7 @@ class TestBuildPostList(unittest.TestCase):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
FreeCAD.ConfigSet("SuppressRecomputeRequiredDialog", "True")
|
||||
cls.testfile = FreeCAD.getHomePath() + "Mod/CAM/Tests/test_filenaming.fcstd"
|
||||
cls.testfile = FreeCAD.getHomePath() + "Mod/CAM/CAMTests/test_filenaming.fcstd"
|
||||
cls.doc = FreeCAD.open(cls.testfile)
|
||||
FreeCAD.ConfigSet("SuppressRecomputeRequiredDialog", "")
|
||||
cls.job = cls.doc.getObjectsByLabel("MainJob")[0]
|
||||
@@ -21,7 +21,7 @@
|
||||
# ***************************************************************************
|
||||
|
||||
import Path
|
||||
import Tests.PathTestUtils as PathTestUtils
|
||||
import CAMTests.PathTestUtils as PathTestUtils
|
||||
|
||||
|
||||
class TestPathPreferences(PathTestUtils.PathTestBase):
|
||||
@@ -27,8 +27,8 @@ import FreeCAD
|
||||
import Part
|
||||
import Path.Op.Profile as PathProfile
|
||||
import Path.Main.Job as PathJob
|
||||
from Tests.PathTestUtils import PathTestBase
|
||||
from Tests.TestPathAdaptive import getGcodeMoves
|
||||
from CAMTests.PathTestUtils import PathTestBase
|
||||
from CAMTests.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
|
||||
FreeCAD.ConfigSet("SuppressRecomputeRequiredDialog", "True")
|
||||
cls.doc = FreeCAD.open(FreeCAD.getHomePath() + "Mod/CAM/Tests/test_profile.fcstd")
|
||||
cls.doc = FreeCAD.open(FreeCAD.getHomePath() + "Mod/CAM/CAMTests/test_profile.fcstd")
|
||||
FreeCAD.ConfigSet("SuppressRecomputeRequiredDialog", "")
|
||||
|
||||
# Create Job object, adding geometry objects from file opened above
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
import FreeCAD
|
||||
import Path.Base.PropertyBag as PathPropertyBag
|
||||
import Tests.PathTestUtils as PathTestUtils
|
||||
import CAMTests.PathTestUtils as PathTestUtils
|
||||
|
||||
|
||||
class TestPathPropertyBag(PathTestUtils.PathTestBase):
|
||||
@@ -23,7 +23,7 @@
|
||||
import FreeCAD
|
||||
import Path
|
||||
import Path.Base.Generator.rotation as generator
|
||||
import Tests.PathTestUtils as PathTestUtils
|
||||
import CAMTests.PathTestUtils as PathTestUtils
|
||||
import numpy as np
|
||||
|
||||
Path.Log.setLevel(Path.Log.Level.INFO, Path.Log.thisModule())
|
||||
@@ -28,7 +28,7 @@ import sys
|
||||
|
||||
# Path.Log.setLevel(Path.Log.Level.DEBUG, Path.Log.thisModule())
|
||||
|
||||
from Tests.PathTestUtils import PathTestBase
|
||||
from CAMTests.PathTestUtils import PathTestBase
|
||||
|
||||
|
||||
def refstring(string):
|
||||
@@ -23,7 +23,7 @@
|
||||
import FreeCAD
|
||||
import Path.Main.Stock as PathStock
|
||||
|
||||
from Tests.PathTestUtils import PathTestBase
|
||||
from CAMTests.PathTestUtils import PathTestBase
|
||||
|
||||
|
||||
class FakeJobProxy:
|
||||
@@ -25,7 +25,7 @@ import Path
|
||||
import Path.Op.ThreadMilling as PathThreadMilling
|
||||
import math
|
||||
|
||||
from Tests.PathTestUtils import PathTestBase
|
||||
from CAMTests.PathTestUtils import PathTestBase
|
||||
|
||||
|
||||
class TestObject(object):
|
||||
@@ -24,7 +24,7 @@ import FreeCAD
|
||||
import Path.Base.Generator.threadmilling as threadmilling
|
||||
import math
|
||||
|
||||
from Tests.PathTestUtils import PathTestBase
|
||||
from CAMTests.PathTestUtils import PathTestBase
|
||||
|
||||
|
||||
def radii(internal, major, minor, toolDia, toolCrest):
|
||||
@@ -21,7 +21,7 @@
|
||||
# ***************************************************************************
|
||||
|
||||
import Path.Tool.Bit as PathToolBit
|
||||
import Tests.PathTestUtils as PathTestUtils
|
||||
import CAMTests.PathTestUtils as PathTestUtils
|
||||
import glob
|
||||
import os
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
import Path
|
||||
import Path.Base.Generator.toolchange as generator
|
||||
import Tests.PathTestUtils as PathTestUtils
|
||||
import CAMTests.PathTestUtils as PathTestUtils
|
||||
|
||||
Path.Log.setLevel(Path.Log.Level.DEBUG, Path.Log.thisModule())
|
||||
Path.Log.trackModule(Path.Log.thisModule())
|
||||
@@ -25,7 +25,7 @@ import Path
|
||||
import Path.Tool.Bit as PathToolBit
|
||||
import Path.Tool.Controller as PathToolController
|
||||
|
||||
from Tests.PathTestUtils import PathTestBase
|
||||
from CAMTests.PathTestUtils import PathTestBase
|
||||
|
||||
|
||||
class TestPathToolController(PathTestBase):
|
||||
@@ -24,7 +24,7 @@ import FreeCAD
|
||||
import Path.Base.Util as PathUtil
|
||||
import TestSketcherApp
|
||||
|
||||
from Tests.PathTestUtils import PathTestBase
|
||||
from CAMTests.PathTestUtils import PathTestBase
|
||||
|
||||
|
||||
class TestPathUtil(PathTestBase):
|
||||
@@ -25,7 +25,7 @@ import Path.Op.Vcarve as PathVcarve
|
||||
import Path.Tool.Bit as PathToolBit
|
||||
import math
|
||||
|
||||
from Tests.PathTestUtils import PathTestBase
|
||||
from CAMTests.PathTestUtils import PathTestBase
|
||||
|
||||
|
||||
class VbitTool(object):
|
||||
@@ -23,7 +23,7 @@
|
||||
import FreeCAD
|
||||
import Part
|
||||
import Path
|
||||
import Tests.PathTestUtils as PathTestUtils
|
||||
import CAMTests.PathTestUtils as PathTestUtils
|
||||
|
||||
vd = None
|
||||
|
||||
@@ -26,7 +26,7 @@ from importlib import reload
|
||||
import FreeCAD
|
||||
|
||||
import Path
|
||||
import Tests.PathTestUtils as PathTestUtils
|
||||
import CAMTests.PathTestUtils as PathTestUtils
|
||||
from Path.Post.scripts import refactored_centroid_post as postprocessor
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ from importlib import reload
|
||||
import FreeCAD
|
||||
|
||||
import Path
|
||||
import Tests.PathTestUtils as PathTestUtils
|
||||
import CAMTests.PathTestUtils as PathTestUtils
|
||||
from Path.Post.scripts import refactored_grbl_post as postprocessor
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ from importlib import reload
|
||||
import FreeCAD
|
||||
|
||||
import Path
|
||||
import Tests.PathTestUtils as PathTestUtils
|
||||
import CAMTests.PathTestUtils as PathTestUtils
|
||||
from Path.Post.scripts import refactored_linuxcnc_post as postprocessor
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ from importlib import reload
|
||||
import FreeCAD
|
||||
|
||||
import Path
|
||||
import Tests.PathTestUtils as PathTestUtils
|
||||
import CAMTests.PathTestUtils as PathTestUtils
|
||||
from Path.Post.scripts import refactored_mach3_mach4_post as postprocessor
|
||||
|
||||
Path.Log.setLevel(Path.Log.Level.DEBUG, Path.Log.thisModule())
|
||||
@@ -24,7 +24,7 @@
|
||||
import FreeCAD
|
||||
|
||||
import Path
|
||||
import Tests.PathTestUtils as PathTestUtils
|
||||
import CAMTests.PathTestUtils as PathTestUtils
|
||||
from Path.Post.scripts import refactored_test_post as postprocessor
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
import FreeCAD
|
||||
|
||||
import Path
|
||||
import Tests.PathTestUtils as PathTestUtils
|
||||
import CAMTests.PathTestUtils as PathTestUtils
|
||||
from Path.Post.scripts import refactored_test_post as postprocessor
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
import FreeCAD
|
||||
|
||||
import Path
|
||||
import Tests.PathTestUtils as PathTestUtils
|
||||
import CAMTests.PathTestUtils as PathTestUtils
|
||||
from Path.Post.scripts import refactored_test_post as postprocessor
|
||||
|
||||
|
||||
@@ -287,66 +287,66 @@ SET(Tools_Shape_SRCS
|
||||
)
|
||||
|
||||
SET(Tests_SRCS
|
||||
Tests/__init__.py
|
||||
Tests/boxtest.fcstd
|
||||
Tests/boxtest1.fcstd
|
||||
Tests/Drilling_1.FCStd
|
||||
Tests/drill_test1.FCStd
|
||||
Tests/FilePathTestUtils.py
|
||||
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/TestCAMSanity.py
|
||||
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
|
||||
CAMTests/__init__.py
|
||||
CAMTests/boxtest.fcstd
|
||||
CAMTests/boxtest1.fcstd
|
||||
CAMTests/Drilling_1.FCStd
|
||||
CAMTests/drill_test1.FCStd
|
||||
CAMTests/FilePathTestUtils.py
|
||||
CAMTests/PathTestUtils.py
|
||||
CAMTests/test_adaptive.fcstd
|
||||
CAMTests/test_profile.fcstd
|
||||
CAMTests/test_centroid_00.ngc
|
||||
CAMTests/test_filenaming.fcstd
|
||||
CAMTests/test_geomop.fcstd
|
||||
CAMTests/test_holes00.fcstd
|
||||
CAMTests/TestCAMSanity.py
|
||||
CAMTests/TestCentroidPost.py
|
||||
CAMTests/TestGrblPost.py
|
||||
CAMTests/TestLinuxCNCPost.py
|
||||
CAMTests/TestMach3Mach4Post.py
|
||||
CAMTests/TestPathAdaptive.py
|
||||
CAMTests/TestPathCore.py
|
||||
CAMTests/TestPathDepthParams.py
|
||||
CAMTests/TestPathDressupDogbone.py
|
||||
CAMTests/TestPathDressupDogboneII.py
|
||||
CAMTests/TestPathDressupHoldingTags.py
|
||||
CAMTests/TestPathDrillGenerator.py
|
||||
CAMTests/TestPathDrillable.py
|
||||
CAMTests/TestPathGeneratorDogboneII.py
|
||||
CAMTests/TestPathGeom.py
|
||||
CAMTests/TestPathHelix.py
|
||||
CAMTests/TestPathHelpers.py
|
||||
CAMTests/TestPathHelixGenerator.py
|
||||
CAMTests/TestPathLanguage.py
|
||||
CAMTests/TestPathLog.py
|
||||
CAMTests/TestPathOpDeburr.py
|
||||
CAMTests/TestPathOpUtil.py
|
||||
CAMTests/TestPathPost.py
|
||||
CAMTests/TestPathPreferences.py
|
||||
CAMTests/TestPathProfile.py
|
||||
CAMTests/TestPathPropertyBag.py
|
||||
CAMTests/TestPathRotationGenerator.py
|
||||
CAMTests/TestPathSetupSheet.py
|
||||
CAMTests/TestPathStock.py
|
||||
CAMTests/TestPathToolChangeGenerator.py
|
||||
CAMTests/TestPathThreadMilling.py
|
||||
CAMTests/TestPathThreadMillingGenerator.py
|
||||
CAMTests/TestPathToolBit.py
|
||||
CAMTests/TestPathToolController.py
|
||||
CAMTests/TestPathUtil.py
|
||||
CAMTests/TestPathVcarve.py
|
||||
CAMTests/TestPathVoronoi.py
|
||||
CAMTests/TestRefactoredCentroidPost.py
|
||||
CAMTests/TestRefactoredGrblPost.py
|
||||
CAMTests/TestRefactoredLinuxCNCPost.py
|
||||
CAMTests/TestRefactoredMach3Mach4Post.py
|
||||
CAMTests/TestRefactoredTestPost.py
|
||||
CAMTests/TestRefactoredTestPostGCodes.py
|
||||
CAMTests/TestRefactoredTestPostMCodes.py
|
||||
CAMTests/Tools/Bit/test-path-tool-bit-bit-00.fctb
|
||||
CAMTests/Tools/Library/test-path-tool-bit-library-00.fctl
|
||||
CAMTests/Tools/Shape/test-path-tool-bit-shape-00.fcstd
|
||||
)
|
||||
|
||||
SET(PathImages_Ops
|
||||
@@ -533,14 +533,14 @@ INSTALL(
|
||||
FILES
|
||||
${Tests_SRCS}
|
||||
DESTINATION
|
||||
Mod/CAM/Tests
|
||||
Mod/CAM/CAMTests
|
||||
)
|
||||
|
||||
INSTALL(
|
||||
DIRECTORY
|
||||
Tests/Tools
|
||||
CAMTests/Tools
|
||||
DESTINATION
|
||||
Mod/CAM/Tests
|
||||
Mod/CAM/CAMTests
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -22,63 +22,63 @@
|
||||
|
||||
import TestApp
|
||||
|
||||
from Tests.TestCAMSanity import TestCAMSanity
|
||||
from Tests.TestPathProfile import TestPathProfile
|
||||
from CAMTests.TestCAMSanity import TestCAMSanity
|
||||
from CAMTests.TestPathProfile import TestPathProfile
|
||||
|
||||
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 CAMTests.TestPathAdaptive import TestPathAdaptive
|
||||
from CAMTests.TestPathCore import TestPathCore
|
||||
from CAMTests.TestPathDepthParams import depthTestCases
|
||||
from CAMTests.TestPathDressupDogbone import TestDressupDogbone
|
||||
from CAMTests.TestPathDressupDogboneII import TestDressupDogboneII
|
||||
from CAMTests.TestPathDressupHoldingTags import TestHoldingTags
|
||||
from CAMTests.TestPathDrillable import TestPathDrillable
|
||||
from CAMTests.TestPathDrillGenerator import TestPathDrillGenerator
|
||||
from CAMTests.TestPathGeneratorDogboneII import TestGeneratorDogboneII
|
||||
from CAMTests.TestPathGeom import TestPathGeom
|
||||
from CAMTests.TestPathLanguage import TestPathLanguage
|
||||
from CAMTests.TestPathOpDeburr import TestPathOpDeburr
|
||||
|
||||
# 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 CAMTests.TestPathHelix import TestPathHelix
|
||||
from CAMTests.TestPathHelpers import TestPathHelpers
|
||||
from CAMTests.TestPathHelixGenerator import TestPathHelixGenerator
|
||||
from CAMTests.TestPathLog import TestPathLog
|
||||
from CAMTests.TestPathOpUtil import TestPathOpUtil
|
||||
|
||||
# from Tests.TestPathPost import TestPathPost
|
||||
from Tests.TestPathPost import TestPathPostUtils
|
||||
from Tests.TestPathPost import TestBuildPostList
|
||||
# from CAMTests.TestPathPost import TestPathPost
|
||||
from CAMTests.TestPathPost import TestPathPostUtils
|
||||
from CAMTests.TestPathPost import TestBuildPostList
|
||||
|
||||
# from Tests.TestPathPost import TestOutputNameSubstitution
|
||||
from Tests.TestPathPost import TestPostProcessorFactory
|
||||
from Tests.TestPathPost import TestResolvingPostProcessorName
|
||||
from Tests.TestPathPost import TestFileNameGenerator
|
||||
# from CAMTests.TestPathPost import TestOutputNameSubstitution
|
||||
from CAMTests.TestPathPost import TestPostProcessorFactory
|
||||
from CAMTests.TestPathPost import TestResolvingPostProcessorName
|
||||
from CAMTests.TestPathPost import TestFileNameGenerator
|
||||
|
||||
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 CAMTests.TestPathPreferences import TestPathPreferences
|
||||
from CAMTests.TestPathProfile import TestPathProfile
|
||||
from CAMTests.TestPathPropertyBag import TestPathPropertyBag
|
||||
from CAMTests.TestPathRotationGenerator import TestPathRotationGenerator
|
||||
from CAMTests.TestPathSetupSheet import TestPathSetupSheet
|
||||
from CAMTests.TestPathStock import TestPathStock
|
||||
from CAMTests.TestPathThreadMilling import TestPathThreadMilling
|
||||
from CAMTests.TestPathThreadMillingGenerator import TestPathThreadMillingGenerator
|
||||
from CAMTests.TestPathToolBit import TestPathToolBit
|
||||
from CAMTests.TestPathToolChangeGenerator import TestPathToolChangeGenerator
|
||||
from CAMTests.TestPathToolController import TestPathToolController
|
||||
from CAMTests.TestPathUtil import TestPathUtil
|
||||
from CAMTests.TestPathVcarve import TestPathVcarve
|
||||
from CAMTests.TestPathVoronoi import TestPathVoronoi
|
||||
|
||||
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
|
||||
from CAMTests.TestCentroidPost import TestCentroidPost
|
||||
from CAMTests.TestGrblPost import TestGrblPost
|
||||
from CAMTests.TestLinuxCNCPost import TestLinuxCNCPost
|
||||
from CAMTests.TestMach3Mach4Post import TestMach3Mach4Post
|
||||
from CAMTests.TestRefactoredCentroidPost import TestRefactoredCentroidPost
|
||||
from CAMTests.TestRefactoredGrblPost import TestRefactoredGrblPost
|
||||
from CAMTests.TestRefactoredLinuxCNCPost import TestRefactoredLinuxCNCPost
|
||||
from CAMTests.TestRefactoredMach3Mach4Post import TestRefactoredMach3Mach4Post
|
||||
from CAMTests.TestRefactoredTestPost import TestRefactoredTestPost
|
||||
from CAMTests.TestRefactoredTestPostGCodes import TestRefactoredTestPostGCodes
|
||||
from CAMTests.TestRefactoredTestPostMCodes import TestRefactoredTestPostMCodes
|
||||
|
||||
# dummy usage to get flake8 and lgtm quiet
|
||||
False if TestCAMSanity.__name__ else True
|
||||
|
||||
Reference in New Issue
Block a user