From 8309b1b21dc91b2a969c5da7f4b105c1bb139e23 Mon Sep 17 00:00:00 2001 From: Janosh Riebesell Date: Fri, 23 Dec 2022 16:54:09 -0800 Subject: [PATCH] update exception tests --- pymatgen/electronic_structure/tests/test_dos.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pymatgen/electronic_structure/tests/test_dos.py b/pymatgen/electronic_structure/tests/test_dos.py index 12b4e2796b8..32bbcd13bc9 100644 --- a/pymatgen/electronic_structure/tests/test_dos.py +++ b/pymatgen/electronic_structure/tests/test_dos.py @@ -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.", )