Skip to content

Commit fe21d12

Browse files
anandhu-engclaude
andcommitted
test: fix test_capture assertion to match updated install hint
The SetupError message was updated to recommend `pip install "inference-endpoint[sysinfo]"` instead of `pip install mlc-scripts`, but the test regex was not updated, causing CI to fail. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 5e58ffe commit fe21d12

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/unit/sys_info/test_capture.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def test_mlcflow_not_installed_raises_setup_error(self, tmp_path: Path) -> None:
203203
from inference_endpoint.sys_info import capture as capture_mod
204204

205205
importlib.reload(capture_mod)
206-
with pytest.raises(SetupError, match="pip install mlc-scripts"):
206+
with pytest.raises(SetupError, match=r"pip install.*inference-endpoint\[sysinfo\]"):
207207
capture_mod.capture_system_info(cfg, output_dir=tmp_path)
208208

209209
@pytest.mark.unit

0 commit comments

Comments
 (0)