From 1d3e0db55d47f75bc11a3e029c8793aa5dd8b46a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 21 May 2024 22:26:22 +0000 Subject: [PATCH 1/2] Bump pytest from 8.2.0 to 8.2.1 Bumps [pytest](https://github.com/pytest-dev/pytest) from 8.2.0 to 8.2.1. - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest/compare/8.2.0...8.2.1) --- updated-dependencies: - dependency-name: pytest dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 0d2284f8..a4914bdb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"] } From dca910252b1154856d637baba75cf59ebffa9fdd Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 21 May 2024 22:26:42 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/test_corrections.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/test_corrections.py b/tests/test_corrections.py index e3c2db71..7578556c 100644 --- a/tests/test_corrections.py +++ b/tests/test_corrections.py @@ -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: @@ -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()