diff --git a/polymerist/tests/mdtools/openfftools/partialcharge/test_molchargers.py b/polymerist/tests/mdtools/openfftools/partialcharge/test_molchargers.py index 3b43d78..eb291f2 100644 --- a/polymerist/tests/mdtools/openfftools/partialcharge/test_molchargers.py +++ b/polymerist/tests/mdtools/openfftools/partialcharge/test_molchargers.py @@ -5,13 +5,15 @@ import pytest -from openff.toolkit import Molecule -from openff.toolkit.utils.toolkits import OPENEYE_AVAILABLE - +# NOTE: inverted custom imports here to get polymerist.openfftools import first, +# Done so that if OpenFF is not found, a helpful installation error with be raised prior to attempting direct openff.toolkit imports below from polymerist.genutils.importutils.dependencies import modules_installed from polymerist.mdtools.openfftools.partialcharge.molchargers import MolCharger, ABE10Charger, EspalomaCharger, NAGLCharger from polymerist.mdtools.openfftools.partialcharge.rescharge.interface import LibraryCharger +from openff.toolkit import Molecule +from openff.toolkit.utils.toolkits import OPENEYE_AVAILABLE + # Test MolCharger subclass registration def test_molcharger_registers_subclasses() -> None: