Skip to content

Commit

Permalink
Start parsing test data
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwthompson committed Jan 18, 2024
1 parent d75b9db commit 1975d32
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion devtools/conda-envs/test_env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ dependencies:
- openff-evaluator-base >= 0.4.1
- pint =0.20
# - openff-recharge
# - openeye-toolkits (Don't have a license file to use with GH Actions.)
- openeye-toolkits
12 changes: 11 additions & 1 deletion src/tests/test_smirnoffio.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import os

import pytest

from forcebalance.nifty import logger
from forcebalance.smirnoffio import SMIRNOFF

Expand All @@ -26,6 +28,11 @@ def setup_class(cls):

os.chdir(cls.tmpfolder)

pytest.importorskip("openeye.oechem")
from openeye import oechem

if not oechem.OEChemIsLicensed():
pytest.skip("Need OEChem license to run this test")
for file in ["dimer.pdb", "dimer.mol2", "opc.offxml"]:
os.system(f"ln -fs ../{file}")

Expand All @@ -46,4 +53,7 @@ def setup_class(cls):
logger.warning("OpenMM cannot be imported, skipping OpenMM tests.")

def test_energy_with_virtual_sites(self):
pass

data = {name: eng.energy_force() for name, eng in self.engines.items()}

assert data['SMIRNOFF'] is not None

0 comments on commit 1975d32

Please sign in to comment.