Skip to content

Commit

Permalink
Make lammps test optional
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen committed Nov 13, 2023
1 parent 7f372ba commit 95a24cc
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions tests/test_optimize_positions_lammps.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,20 @@
import unittest

from atomistics.workflows.structure_optimization.workflow import optimize_positions
from atomistics.calculators.lammps import (
evaluate_with_lammps, get_potential_dataframe
)

try:
from atomistics.calculators.lammps import (
evaluate_with_lammps, get_potential_dataframe
)

skip_lammps_test = False
except ImportError:
skip_lammps_test = True


@unittest.skipIf(
skip_lammps_test, "LAMMPS is not installed, so the LAMMPS tests are skipped."
)
class TestOptimizePositionsLAMMPS(unittest.TestCase):
def test_optimize_positions(self):
potential = '1999--Mishin-Y--Al--LAMMPS--ipr1'
Expand Down

0 comments on commit 95a24cc

Please sign in to comment.