Cleaned up tests for shell. Added test steps for gerber flow.

This commit is contained in:
Juan Pablo Caram
2016-06-03 17:15:35 -04:00
parent a3dbaff258
commit 36d0a2e029
20 changed files with 65 additions and 19 deletions

View File

@@ -0,0 +1,18 @@
from FlatCAMObj import FlatCAMObj
from test_TclCommandOpenExcellon import *
def test_drillcncjob(self):
"""
Test cncjob
:param self:
:return:
"""
# reuse open excellontests
test_open_excellon(self)
self.fc.exec_command_test('drillcncjob %s -tools all -drillz 0.5 -travelz 3 -feedrate 300'
% self.excellon_name)
cam_top_obj = self.fc.collection.get_by_name(self.excellon_name + '_cnc')
self.assertTrue(isinstance(cam_top_obj, FlatCAMObj), "Expected FlatCAMObj, instead, %s is %s"
% (self.excellon_name + '_cnc', type(cam_top_obj)))