fix(ci): add missing content-type header in scrape test mock and format mcp_client (#2612)
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user