Skip to content

Commit 567875e

Browse files
committed
clean up test sse
1 parent f1f17f7 commit 567875e

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

tests/shared/test_sse.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -338,14 +338,9 @@ async def handle_call_tool(name: str, args: dict) -> list[TextContent]:
338338
pass # No request context available
339339

340340
if name == "echo_headers":
341-
# Return the headers as JSON in the response
342-
import json
343-
344341
return [TextContent(type="text", text=json.dumps(headers_info))]
345342
elif name == "echo_context":
346343
# Return context info with request ID
347-
import json
348-
349344
context_data = {
350345
"request_id": args.get("request_id"),
351346
"headers": headers_info,
@@ -499,9 +494,6 @@ async def test_request_context_isolation(context_server: None, server_url: str)
499494
"echo_context", {"request_id": f"request-{i}"}
500495
)
501496

502-
# Parse and store the result
503-
import json
504-
505497
assert len(tool_result.content) == 1
506498
context_data = json.loads(
507499
tool_result.content[0].text

0 commit comments

Comments
 (0)