Skip to content

Commit

Permalink
skip test if GOMC binary is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
daico007 committed Oct 2, 2023
1 parent 3fc8118 commit 869689d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mosdef_dihedral_fit/tests/test_fit_dihedral_with_gomc.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@
from mosdef_dihedral_fit.utils.io import get_mosdef_dihedral_fit_fn

# user changable variable, as it needs to be run locally
# May try to get a way to automatically detect the binary using `shutil.which()`
gomc_binary_directory = "/home/brad/Programs/GOMC/GOMC_2_75/bin"


@pytest.mark.skipif(
not os.path.isfile(gomc_binary_directory), reason="GOMC binary not deteced."
)
class TestFitDihedralWithGomc(BaseTest):
def test_gaussian_log_file_fit_oplsaa_fit_ethane_HC_CT_CT_HC(self):
fit_dihedral_with_gomc(
Expand Down

0 comments on commit 869689d

Please sign in to comment.