From 8a081536831170335f949d6553aca4f79c4fb2e9 Mon Sep 17 00:00:00 2001 From: Tingzheng Hou <25351437+htz1992213@users.noreply.github.com> Date: Tue, 23 Jan 2024 17:48:05 +0800 Subject: [PATCH] handle ligpargen not found --- tests/test_forcefield.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_forcefield.py b/tests/test_forcefield.py index 709b0fea..eaa563c7 100644 --- a/tests/test_forcefield.py +++ b/tests/test_forcefield.py @@ -8,7 +8,10 @@ import pytest from mdgo.forcefield.mdgoligpargen import * -from mdgo.forcefield.aqueous import * +try: + from mdgo.forcefield.aqueous import * +except ModuleNotFoundError: + pass test_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "test_files")