Require pybind 2.6 from environment for gmxapi Python package extension module.
[alexxy/gromacs.git] / python_packaging / sample_restraint / tests / test_plugin.py
index bd8c0c0ae52f5226636e8f193e8020147b00b33f..e7016a998183c1520edfa1782e464c9946231d47 100644 (file)
@@ -73,6 +73,7 @@ def test_binding_protocol(spc_water_box, mdrun_kwargs):
     assert len(context.potentials) > 0
     for restraint in context.potentials:
         if isinstance(restraint, myplugin.NullRestraint):
+            assert gmx.version.api_is_at_least(0, 2, 1)
             assert restraint.count() > 1