style(test): match existing single-line result-dict style
Keep the Keenable search test consistent with the surrounding mocks (test_tavily/test_brave) rather than introducing a multi-line outlier. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
committed by
Xubin Ren
co-authored by
Claude Opus 4.8
parent
fa3e902ee8
commit
83cb296cdc
@@ -145,12 +145,7 @@ async def test_keenable_search(monkeypatch):
|
|||||||
assert kw["headers"]["X-API-Key"] == "keen-key"
|
assert kw["headers"]["X-API-Key"] == "keen-key"
|
||||||
assert kw["headers"]["User-Agent"].startswith("nanobot/")
|
assert kw["headers"]["User-Agent"].startswith("nanobot/")
|
||||||
return _response(json={
|
return _response(json={
|
||||||
"results": [{
|
"results": [{"title": "Keen", "url": "https://keenable.ai", "description": "short", "snippet": "longer excerpt"}]
|
||||||
"title": "Keen",
|
|
||||||
"url": "https://keenable.ai",
|
|
||||||
"description": "short",
|
|
||||||
"snippet": "longer excerpt",
|
|
||||||
}]
|
|
||||||
})
|
})
|
||||||
|
|
||||||
monkeypatch.setattr(httpx.AsyncClient, "post", mock_post)
|
monkeypatch.setattr(httpx.AsyncClient, "post", mock_post)
|
||||||
|
|||||||
Reference in New Issue
Block a user