[claude] Add unit tests for tools/system_tools.py (#1345) #1354

Merged
claude merged 1 commits from claude/issue-1345 into main 2026-03-24 02:56:35 +00:00

1 Commits

Author SHA1 Message Date
Alexander Whitestone
5251dda8e7 test: add unit tests for tools/system_tools.py
Some checks failed
Tests / lint (pull_request) Failing after 31s
Tests / test (pull_request) Has been skipped
Creates tests/timmy/test_system_tools.py with 67 tests covering:
- _safe_eval: constants, arithmetic ops, math functions, injection
  prevention, unsupported syntax
- calculator: basic operations, error handling, injection prevention
- consult_grok: unavailable path, free mode, spark logging failures,
  paid mode lightning failures
- web_fetch: URL validation, missing packages, truncation, HTTP errors,
  timeout, request exceptions
- AiderTool: success/failure/timeout/os-error paths, model/flag/cwd
  args validation
- toolkit factories: ImportError paths and happy paths for code/security/devops

Fixes #1345

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-23 22:55:37 -04:00