Skip to content

Commit

Permalink
Check for cholespy module before running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
njroussel committed Jun 6, 2023
1 parent bbfa365 commit 130ed55
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/python/python/tests/test_largesteps.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

@fresolver_append_path
def test01_init(variants_all_ad_rgb):
pytest.importorskip("cholespy")

mesh = mi.load_dict({
"type" : "ply",
"filename" : "resources/data/tests/ply/triangle.ply",
Expand All @@ -19,6 +21,8 @@ def test01_init(variants_all_ad_rgb):

@fresolver_append_path
def test02_roundtrip(variants_all_ad_rgb):
pytest.importorskip("cholespy")

mesh = mi.load_dict({
"type" : "ply",
"filename" : "resources/data/tests/ply/triangle.ply",
Expand All @@ -34,8 +38,9 @@ def test02_roundtrip(variants_all_ad_rgb):


def test03_non_unique_vertices(variants_all_ad_rgb):
mesh = mi.Mesh("MyMesh", 5, 2)
pytest.importorskip("cholespy")

mesh = mi.Mesh("MyMesh", 5, 2)
params = mi.traverse(mesh)
params['vertex_positions'] = [
0.0, 0.0, 0.0,
Expand Down

0 comments on commit 130ed55

Please sign in to comment.