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

Update sample_test.py

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