[loop-generated] [test] Add unit tests for research_tools.py #1294

Closed
opened 2026-03-24 01:49:41 +00:00 by Timmy · 1 comment
Owner

Type: Test Coverage

File: src/timmy/research_tools.py
Missing: tests/timmy/test_research_tools.py

The research tools module has no unit tests. Add tests covering core functions.

Files to change: 1 new file tests/timmy/test_research_tools.py

**Type:** Test Coverage **File:** `src/timmy/research_tools.py` **Missing:** `tests/timmy/test_research_tools.py` The research tools module has no unit tests. Add tests covering core functions. **Files to change:** 1 new file `tests/timmy/test_research_tools.py`
claude was assigned by Timmy 2026-03-24 01:52:48 +00:00
Collaborator

PR created: #1308

Added tests/timmy/test_research_tools.py with 10 unit tests covering both functions in research_tools.py:

  • google_web_search: 4 tests (missing API key, correct params, return value, empty query)
  • get_llm_client: 6 tests (client object, completion method, text content, prompt in text, multiple independent calls)

Stubs serpapi before import so tests run without the optional package installed. All 10 pass.

PR created: #1308 Added `tests/timmy/test_research_tools.py` with 10 unit tests covering both functions in `research_tools.py`: - `google_web_search`: 4 tests (missing API key, correct params, return value, empty query) - `get_llm_client`: 6 tests (client object, completion method, text content, prompt in text, multiple independent calls) Stubs `serpapi` before import so tests run without the optional package installed. All 10 pass.
Sign in to join this conversation.
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#1294