mirror of
https://github.com/gumyr/build123d.git
synced 2026-02-07 16:01:27 -08:00
Allowing tests to be run from project dir
This commit is contained in:
parent
97088d6f3c
commit
4a8dc91a38
1 changed files with 4 additions and 1 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue