Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jmmshn committed May 21, 2024
1 parent 553db2b commit a6eb836
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/test_corrections.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
get_freysoldt_correction,
plot_plnr_avg,
)
from pymatgen.analysis.defects.corrections.kumagai import get_efnv_correction, get_structure_with_pot
from pymatgen.analysis.defects.corrections.kumagai import (
get_efnv_correction,
get_structure_with_pot,
)


def test_freysoldt(data_Mg_Ga) -> None:
Expand Down Expand Up @@ -87,8 +90,10 @@ def test_kumagai(test_dir):
)
assert res1.correction_energy > 0


def test_kumagai_missing():
from pymatgen.analysis.defects.corrections import kumagai

kumagai.__has_pydefect__ = False
with pytest.raises(ImportError):
kumagai._check_import_pydefect()

0 comments on commit a6eb836

Please sign in to comment.