Skip to content

Commit 0b106e6

Browse files
committed
fix skiptest
1 parent 2dad4d8 commit 0b106e6

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎paths_cli/tests/compiling/test_cvs.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
import MDTrajFunctionCV
1212
import mdtraj as md
1313

14+
from paths_cli.compat.openmm import HAS_OPENMM
15+
1416

1517
class TestMDTrajFunctionCV:
1618
def setup(self):
@@ -24,7 +26,8 @@ def setup(self):
2426
self.kwargs = "indices: [[4, 6, 8, 14]]"
2527

2628
def test_build_mdtraj_function_cv(self):
27-
_ = pytest.importorskip('mdtraj')
29+
if not HAS_OPENMM:
30+
pytest.skip("Requires OpenMM for ops_load_trajectory")
2831
yml = self.yml.format(kwargs=self.kwargs, func="compute_dihedrals")
2932
dct = yaml.load(yml, Loader=yaml.FullLoader)
3033
cv = MDTRAJ_CV_PLUGIN(dct)

0 commit comments

Comments
 (0)