Skip to content
Snippets Groups Projects
Commit bc9d22c7 authored by jack-parsons's avatar jack-parsons
Browse files

Changing stl file paths to be compatible with Pycharm Unittests

parent 164f6938
No related branches found
No related tags found
1 merge request!23Merge in Jack's changes
Pipeline #843 failed
...@@ -31,7 +31,7 @@ class TestBasicFunction(unittest.TestCase): ...@@ -31,7 +31,7 @@ class TestBasicFunction(unittest.TestCase):
self.assertEqual(s, "<class 'module'>") self.assertEqual(s, "<class 'module'>")
def test_rotate(self): def test_rotate(self):
stlPath = os.path.abspath(os.getcwd()) + "\\tests\\sample_stl_sphere_BIN.stl" stlPath = "sample_stl_sphere_BIN.stl"
from AmpScan.core import AmpObject from AmpScan.core import AmpObject
Amp = AmpObject(stlPath) Amp = AmpObject(stlPath)
s = str(type(Amp)) s = str(type(Amp))
...@@ -42,7 +42,7 @@ class TestBasicFunction(unittest.TestCase): ...@@ -42,7 +42,7 @@ class TestBasicFunction(unittest.TestCase):
def test_trim(self): def test_trim(self):
# a new test for the trim module # a new test for the trim module
stlPath = os.path.abspath(os.getcwd()) + "\\tests\\sample_stl_sphere_BIN.stl" stlPath = "sample_stl_sphere_BIN.stl"
from AmpScan.core import AmpObject from AmpScan.core import AmpObject
Amp = AmpObject(stlPath) Amp = AmpObject(stlPath)
#with self.assertRaises(TypeError): #with self.assertRaises(TypeError):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment