Allowing tests to be run from project dir

This commit is contained in:
gumyr 2024-01-13 11:16:36 -05:00
parent 97088d6f3c
commit 4a8dc91a38

View file

@ -194,7 +194,10 @@ class TestImportDegenerateTriangles(unittest.TestCase):
def test_degenerate_import(self):
"""Some STLs may contain 'triangles' where all three points are on a line"""
importer = Mesher()
stl = importer.read("cyl_w_rect_hole.stl")[0]
try:
stl = importer.read("tests/cyl_w_rect_hole.stl")[0]
except:
stl = importer.read("cyl_w_rect_hole.stl")[0]
self.assertEqual(type(stl), Solid)
self.assertTrue(stl.is_manifold)
self.assertTrue(stl.is_valid())