Skip to content

Commit 87eb5ad

Browse files
committed
missed one
1 parent 1d88e82 commit 87eb5ad

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/structure_viz/test_structure_viz_helpers.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,8 @@ def test_get_elem_colors(
103103

104104

105105
def test_get_elem_colors_invalid_input() -> None:
106-
with pytest.raises(
107-
ValueError, match=re.escape("colors must be a dict or one of ('jmol, vesta')")
108-
):
106+
err_msg = f"colors must be a dict or one of ('{', '.join(ElemColorScheme)}')"
107+
with pytest.raises(ValueError, match=re.escape(err_msg)):
109108
get_elem_colors("invalid_input") # type: ignore[arg-type]
110109

111110

0 commit comments

Comments
 (0)