[claude] Add unit tests for tools/system_tools.py (#1345) #1354
Reference in New Issue
Block a user
Delete Branch "claude/issue-1345"
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 #1345
Creates
tests/timmy/test_system_tools.pywith 67 unit tests covering all core functions insrc/timmy/tools/system_tools.py:_safe_eval: constants, arithmetic ops, math functions/attributes, injection prevention (strings, unknown names, unsupported ops/syntax)calculator: basic operations, error handling, injection preventionconsult_grok: unavailable path, free mode, spark logging failures, paid mode lightning failuresweb_fetch: URL validation, missing packages, truncation, HTTP errors, timeout, request exceptionsAiderTool: success/failure/timeout/os-error paths, model/flag/cwd arg validationcreate_code_tools,create_security_tools,create_devops_tools): ImportError paths and happy pathsAll tests pass
tox -e unit(821 passed, 3 skipped).