From dc3e5f512fbf7c939c1bee5dc661e357b801663c Mon Sep 17 00:00:00 2001
From: ojs1g14 <ojs1g14@soton.ac.uk>
Date: Fri, 28 Sep 2018 13:56:05 +0100
Subject: [PATCH] add set up method to test

---
 tests/sample_test.py | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/tests/sample_test.py b/tests/sample_test.py
index 4495fcb..d3be475 100644
--- a/tests/sample_test.py
+++ b/tests/sample_test.py
@@ -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)
-- 
GitLab