[claude] Add unit tests for research_tools.py (#1294) #1308
Reference in New Issue
Block a user
Delete Branch "claude/issue-1294"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #1294
Adds
tests/timmy/test_research_tools.pywith 10 unit tests covering:google_web_search: missing API key returns"", correct params forwarded toGoogleSearch, return value isstr(results), empty query still calls searchget_llm_client: returns a non-None object, exposes a callablecompletionmethod,completion()returns object with.text, text contains the prompt, multiple calls return independent objects/clientsStubs
serpapiinsys.modulesbefore import so tests run without the optional package installed (matches existing conftest pattern).