Skip to content

Commit

Permalink
Access the error message of invoke endpoint correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
heisner-tillman committed Feb 24, 2024
1 parent 20eb811 commit dcf3849
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/integration/test_workflow_invocation.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def test_run_workflow_with_missing_tool(self):
)
self._assert_status_code_is(invocation_response, 400)
assert (
invocation_response.json().get("detail")
invocation_response.json().get("err_msg")
== "Workflow was not invoked; the following required tools are not installed: nonexistent_tool (version 0.1), compose_text_param (version 0.0.1)"
)
# should fail but return only the tool_id of non_existent tool as another version of compose_text_param is installed
Expand All @@ -119,6 +119,6 @@ def test_run_workflow_with_missing_tool(self):
)
self._assert_status_code_is(invocation_response, 400)
assert (
invocation_response.json().get("detail")
invocation_response.json().get("err_msg")
== "Workflow was not invoked; the following required tools are not installed: nonexistent_tool"
)

0 comments on commit dcf3849

Please sign in to comment.