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

add set up method to test

parent 0639d136
Branches
No related tags found
No related merge requests found
Pipeline #342 passed
......@@ -13,8 +13,6 @@ class TestBasicFunction(unittest.TestCase):
self.assertTrue(True)
def test_python_imports(self):
modPath = os.path.abspath(os.getcwd())
sys.path.insert(0, modPath)
import numpy, scipy, matplotlib, vtk, AmpScan.core
s = str(type(numpy))
self.assertEqual(s, "<class 'module'>")
......@@ -32,9 +30,7 @@ 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)
def test_rotate(self):
stlPath = os.path.abspath(os.getcwd()) + "\\tests\\sample_stl_sphere_BIN.stl"
from AmpScan.core import AmpObject
Amp = AmpObject(stlPath)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment