Skip to content

Commit

Permalink
update exception tests
Browse files Browse the repository at this point in the history
  • Loading branch information
janosh committed Dec 24, 2022
1 parent a8216c7 commit 8309b1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pymatgen/electronic_structure/tests/test_dos.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,14 +295,14 @@ def test_dos_fp_exceptions(self):
self.dos.get_dos_fp_similarity(dos_fp, dos_fp2, col=1, tanimoto=True, normalize=True)
self.assertEqual(
err.exception.__str__(),
"Cannot compute similarity index, Please set either one of normalize/tanimoto arg to true or set both to false",
"Cannot compute similarity index. Please set either normalize=True or tanimoto=True or both to False.",
)
with self.assertRaises(ValueError) as err:

self.dos.get_dos_fp(type="k", min_e=-10, max_e=0, n_bins=56, normalize=True)
self.assertEqual(
err.exception.__str__(),
"Please recheck type requested, either the orbital projections unavailable in input dos or some there exist some mistake in the spelling.",
"Please recheck type requested, either the orbital projections unavailable in input DOS or there's a typo in type.",
)


Expand Down

0 comments on commit 8309b1b

Please sign in to comment.