Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump pytest from 8.2.0 to 8.2.1 #194

Merged
merged 2 commits into from
Jul 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ strict = [
"pydefect==0.9.4",
]

tests = ["pytest==8.2.0", "pytest-cov==5.0.0", "nbmake==1.5.3"]
tests = ["pytest==8.2.1", "pytest-cov==5.0.0", "nbmake==1.5.3"]

[tool.setuptools.dynamic]
readme = { file = ["README.md"] }
Expand Down
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()
Loading