Skip to content
Snippets Groups Projects
Commit b3ab6681 authored by ojs1g14's avatar ojs1g14
Browse files

Update sample_test.py

parent fb0e4bd0
No related branches found
No related tags found
No related merge requests found
Pipeline #85 canceled
......@@ -28,13 +28,13 @@ class TestBasicFunction(unittest.TestCase):
s = str(type("string"))
self.assertEqual(s, "<class 'module'>")
def test_import_stl(self):
modPath = os.path.abspath(os.getcwd())
sys.path.insert(0, modPath)
stlPath = os.path.abspath(os.getcwd()) + "\\tests\\sample_stl_sphere_ASCII.stl"
from AmpScan.core import AmpObject
Amp = AmpObject(stlPath)
self.assertRaises(MemoryError)
# def test_import_stl(self):
# modPath = os.path.abspath(os.getcwd())
# sys.path.insert(0, modPath)
# stlPath = os.path.abspath(os.getcwd()) + "\\tests\\sample_stl_sphere_ASCII.stl"
# from AmpScan.core import AmpObject
# Amp = AmpObject(stlPath)
# self.assertRaises(MemoryError)
if __name__ == '__main__':
unittest.main()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment