Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Disiok committed Oct 14, 2024
1 parent d3af68c commit cd9a0cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/cli/test_deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
def test_deploy(runner: CliRunner, data_path: Path) -> None:
test_config_file = data_path / "deployment.yaml"
mocked_response = mock.MagicMock(status_code=200, json=lambda: {})
with mock.patch("llama_deploy.cli.deploy.request") as mocked_httpx:
with mock.patch("llama_deploy.cli.utils.httpx.request") as mocked_httpx:
mocked_httpx.return_value = mocked_response
result = runner.invoke(llamactl, ["-t", "5.0", "deploy", str(test_config_file)])

Expand All @@ -29,7 +29,7 @@ def test_deploy_failed(runner: CliRunner, data_path: Path) -> None:
mocked_response = mock.MagicMock(
status_code=401, json=lambda: {"detail": "Unauthorized!"}
)
with mock.patch("llama_deploy.cli.deploy.request") as mocked_httpx:
with mock.patch("llama_deploy.cli.utils.httpx.request") as mocked_httpx:
mocked_httpx.return_value = mocked_response
result = runner.invoke(llamactl, ["deploy", str(test_config_file)])
assert result.exit_code == 1
Expand Down

0 comments on commit cd9a0cf

Please sign in to comment.