--- /dev/null
+enable_testing()
+add_test(NAME "test_modeler" COMMAND "python" "modeler_test_case.py")
--- /dev/null
+import unittest
+import modeler
+
+class ModelerTestCase(unittest.TestCase):
+ def setUp(self):
+ modeler.begin()
+ partset = modeler.moduleDocument()
+ self.part = modeler.addPart(partset).document()
+
+ def tearDown(self):
+ modeler.end()
+
+ def test_add_sketch(self):
+ plane = modeler.defaultPlane("XOY")
+ modeler.addSketch(self.part, plane)
+
+if __name__ == "__main__":
+ unittest.main()
--- /dev/null
+import unittest
+import modeler
+
+class TestSketcher(unittest.TestCase):
+ def test_init_sketch(self):
+ modeler.begin()
+ partset = modeler.moduleDocument()
+ part = modeler.addPart(partset).document()
+ plane = modeler.defaultPlane("XOY")
+ modeler.addSketch(part, plane)
+ modeler.end()
+
+if __name__ == "__main__":
+ unittest.main()