test_TclCommandDrillcncjob.py 625 B

123456789101112131415161718
  1. from FlatCAMObj import FlatCAMObj
  2. from .test_TclCommandOpenExcellon import *
  3. def test_drillcncjob(self):
  4. """
  5. Test cncjob
  6. :param self:
  7. :return:
  8. """
  9. # reuse open excellontests
  10. test_open_excellon(self)
  11. self.fc.exec_command_test('drillcncjob %s -tools all -drillz 0.5 -travelz 3 -feedrate 300'
  12. % self.excellon_name)
  13. cam_top_obj = self.fc.collection.get_by_name(self.excellon_name + '_cnc')
  14. self.assertTrue(isinstance(cam_top_obj, FlatCAMObj), "Expected FlatCAMObj, instead, %s is %s"
  15. % (self.excellon_name + '_cnc', type(cam_top_obj)))