From bc9d22c75e137676193ebf7f6a0a4f2a00f0f042 Mon Sep 17 00:00:00 2001 From: jack-parsons <jack.parsons.uk@icloud.com> Date: Mon, 22 Jul 2019 14:37:15 +0100 Subject: [PATCH] Changing stl file paths to be compatible with Pycharm Unittests --- tests/sample_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/sample_test.py b/tests/sample_test.py index 73131ad..3e38f43 100644 --- a/tests/sample_test.py +++ b/tests/sample_test.py @@ -31,7 +31,7 @@ class TestBasicFunction(unittest.TestCase): self.assertEqual(s, "<class 'module'>") 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 Amp = AmpObject(stlPath) s = str(type(Amp)) @@ -42,7 +42,7 @@ class TestBasicFunction(unittest.TestCase): def test_trim(self): # 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 Amp = AmpObject(stlPath) #with self.assertRaises(TypeError): -- GitLab