fix(ci): add missing content-type header in scrape test mock and format mcp_client (#2612)

This commit is contained in:
Hundao
2026-01-30 18:33:37 +08:00
committed by GitHub
parent b10d617166
commit 0d602f92a3
2 changed files with 2 additions and 2 deletions
+1 -2
View File
@@ -457,8 +457,7 @@ class MCPClient:
if self._loop.is_running():
try:
cleanup_future = asyncio.run_coroutine_threadsafe(
self._cleanup_stdio_async(),
self._loop
self._cleanup_stdio_async(), self._loop
)
cleanup_future.result(timeout=self._CLEANUP_TIMEOUT)
cleanup_attempted = True
@@ -64,6 +64,7 @@ class TestWebScrapeToolLinkConversion:
mock_response.status_code = 200
mock_response.text = html_content
mock_response.url = final_url
mock_response.headers = {"content-type": "text/html; charset=utf-8"}
return mock_response
@patch("aden_tools.tools.web_scrape_tool.web_scrape_tool.httpx.get")