File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,5 @@ def test_phonon_thermo(use_document_model):
7676 num_vals = 100
7777
7878 assert all (
79- isinstance (v , np .ndarray if k == "temperature" else list ) and len (v ) == num_vals
80- for k , v in thermo_props .items ()
79+ isinstance (v , list ) and len (v ) == num_vals for k , v in thermo_props .items ()
8180 )
Original file line number Diff line number Diff line change @@ -106,13 +106,13 @@ def test_list_like_input():
106106 } == set (crys_sys )
107107
108108 # should fail - we don't support querying by so many list values
109- with pytest .raises (ValueError , match = "retrieve all data first and then filter" ):
109+ with pytest .raises (MPRestError , match = "retrieve all data first and then filter" ):
110110 _ = search_method (spacegroup_number = list (range (1 , 231 )))
111111
112- with pytest .raises (ValueError , match = "retrieve all data first and then filter" ):
112+ with pytest .raises (MPRestError , match = "retrieve all data first and then filter" ):
113113 _ = search_method (spacegroup_number = ["null" for _ in range (230 )])
114114
115- with pytest .raises (ValueError , match = "retrieve all data first and then filter" ):
115+ with pytest .raises (MPRestError , match = "retrieve all data first and then filter" ):
116116 _ = search_method (crystal_system = list (CrystalSystem ))
117117
118118
You can’t perform that action at this time.
0 commit comments