File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -255,7 +255,6 @@ def execute(
255255 raise ValueError (error_message ) from exc
256256 except httpx .HTTPStatusError as exc :
257257 status = "error"
258- error_message = str (exc )
259258 response_body = None
260259 if exc .response .text :
261260 try :
@@ -269,7 +268,6 @@ def execute(
269268 ) from exc
270269 except httpx .RequestError as exc :
271270 status = "error"
272- error_message = str (exc )
273271 raise StackOneError (f"Request failed: { exc } " ) from exc
274272 finally :
275273 datetime .now (timezone .utc )
Original file line number Diff line number Diff line change @@ -200,6 +200,8 @@ def custom_side_effect(request: httpx.Request) -> httpx.Response:
200200
201201 error_result = next (r for r in result ["results" ] if r ["account_id" ] == "acc_unauthorized" )
202202 assert error_result ["status" ] == "error"
203+ assert "error" in error_result
204+ assert "401" in error_result ["error" ]
203205
204206 def test_tool_integration (self ) -> None :
205207 """Test that feedback tool integrates properly with toolset."""
You can’t perform that action at this time.
0 commit comments