Skip to content

Commit

Permalink
Add pytest.skip test if pygnme not found
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhishek Khedkar committed Aug 15, 2023
1 parent 8f3b107 commit f9a1654
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vayesta/tests/misc/test_varembedding.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ def test_unrestr_regression_var_emb(self):
class Test_RHF_var_emb(TestCase):
@classmethod
def setUpClass(cls):
try:
import pygnme
except ImportError:
pytest.skip("Variational Embedding requires pygnme")

cls.mf = testsystems.h6_sto6g.rhf()

@classmethod
Expand Down

0 comments on commit f9a1654

Please sign in to comment.