Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mkhorton committed Oct 20, 2021
1 parent 383c8e4 commit 9e07b86
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pymatgen/io/vasp/tests/test_inputs.py
Expand Up @@ -941,12 +941,11 @@ def test_identify_potcar(self):
with pytest.warns(None) as warning:
psingle = PotcarSingle.from_file(filename)
assert "PBE_54" in psingle.identify_potcar()[0]
assert not warning
assert "Fe" in psingle.identify_potcar()[1]

def test_potcar_hash_warning(self):
filename = PymatgenTest.TEST_FILES_DIR / "modified_potcars_data" / "POT_GGA_PAW_PBE" / "POTCAR.Fe_pv"
with pytest.warns(UnknownPotcarWarning, match="integrity"):
with pytest.warns(UnknownPotcarWarning, match="incomplete"):
PotcarSingle.from_file(filename)

def test_potcar_file_hash_warning(self):
Expand Down

0 comments on commit 9e07b86

Please sign in to comment.