Skip to content

Commit

Permalink
Allowing tests to be run from project dir
Browse files Browse the repository at this point in the history
  • Loading branch information
gumyr committed Jan 13, 2024
1 parent 97088d6 commit 4a8dc91
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_mesher.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 4a8dc91

Please sign in to comment.