Skip to content

Commit a230b86

Browse files
authored
Fix mcpl dependency in test (#3691)
1 parent e0eb91b commit a230b86

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/unit_tests/test_collision_track.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import pytest
66
import h5py
77
import numpy as np
8+
import shutil
89

910
from tests.testing_harness import CollisionTrackTestHarness as ctt
1011

@@ -109,6 +110,7 @@ def test_particle_location(run_in_tmpdir, model):
109110
assert False
110111

111112

113+
@pytest.mark.skipif(shutil.which("mcpl-config") is None, reason="MCPL is not available.")
112114
def test_format_similarity(run_in_tmpdir, model):
113115
model.settings.collision_track = {"max_collisions": 200, "reactions": ['elastic'],
114116
"cell_ids": [1, 2], "mcpl": False}

0 commit comments

Comments
 (0)