Skip to content

Commit 875e64a

Browse files
patch up tests
1 parent 5139be6 commit 875e64a

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

tests/client/materials/test_phonon.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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
)

tests/client/materials/test_summary.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)