The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix: reconstruct fused test after conflict resolution
kshitijk4poor98165daacb20
diff --git a/tests/gateway/test_sse_agent_cancel.py b/tests/gateway/test_sse_agent_cancel.pyindex 38531e5199c..f46d2b57470 100644--- a/tests/gateway/test_sse_agent_cancel.py+++ b/tests/gateway/test_sse_agent_cancel.py@@ -357,6 +357,13 @@ class TestSSEAgentFailureFinishReason:assert "error" in finishassert "data: [DONE]" in sse+ def test_failed_result_dict_reports_error_not_stop(self):+ async def failed():+ return (+ {"final_response": "", "failed": True, "completed": False,+ "error": "upstream model 500"},+ {"input_tokens": 5, "output_tokens": 0, "total_tokens": 5},+ )reason, finish, _ = self._run(failed)assert reason == "error"