Skip to content

Commit

Permalink
update expected ValueError msg in test_phonons.py
Browse files Browse the repository at this point in the history
  • Loading branch information
janosh committed Feb 18, 2024
1 parent 0f326f5 commit 458fa88
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/vasp/flows/test_phonons.py
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,8 @@ def test_phonon_wf_only_displacements_kpath_raises_no_cell_change(

with pytest.raises(
ValueError,
match="can only use other kpath schemes with the primitive standard structure",
match=f"You can't use {kpath_scheme=} with the primitive standard "
"structure, please use seekpath",
):
PhononMaker(
min_length=3.0,
Expand Down Expand Up @@ -788,7 +789,11 @@ def test_phonon_wf_only_displacements_kpath_raises(mock_vasp, clean_dir, kpath_s

# automatically use fake VASP and write POTCAR.spec during the test
mock_vasp(ref_paths, fake_run_vasp_kwargs)
with pytest.raises(ValueError, match="can only use other kpath schemes with the"):
with pytest.raises(
ValueError,
match=f"You can't use {kpath_scheme=} with the primitive standard "
"structure, please use seekpath",
):
PhononMaker(
min_length=3.0,
bulk_relax_maker=None,
Expand Down

0 comments on commit 458fa88

Please sign in to comment.