We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2be5474 commit 22567d0Copy full SHA for 22567d0
test/unit/test_model_server.py
@@ -279,11 +279,10 @@ def test_install_requirements(check_call):
279
assert i in check_call.call_args.args[0]
280
281
282
- @patch("subprocess.check_call", side_effect=subprocess.CalledProcessError(0, "cmd"))
+@patch("subprocess.check_call", side_effect=subprocess.CalledProcessError(0, "cmd"))
283
def test_install_requirements_installation_failed(check_call):
284
with pytest.raises(ValueError) as e:
285
torchserve._install_requirements()
286
-
287
assert "failed to install required packages" in str(e.value)
288
289
0 commit comments