Commit Graph
2 Commits
Author SHA1 Message Date
Jon Saad-FalconandClaude Opus 4.6 c1bbe286e1 fix(tests): update 110 tests to match Rust backend behavior
Update test expectations across all test modules to align with the
Rust (PyO3) backend that replaced Python implementations:

- calculator: meval uses ^/ln/floor(), returns floats, inf for 1/0
- shell_exec: output format uses "Exit code: N\n--- stdout ---\n..."
- git_tool: always --oneline, mock Rust bridge for git-not-found
- http_request: force httpx fallback so respx mocks work
- memory: UUID is 36 chars (hyphenated), BM25Memory() takes no args
- loop_guard: Rust blocks on 2nd identical call, capitalized messages
- ssrf: Rust returns "Invalid URL" for unparseable URLs
- mcp: division by zero returns inf (success), not error
- integration: calculator results are float strings ("4.0" not "4")

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 00:29:33 +00:00
Jon Saad-FalconandClaude Opus 4.6 e280cc41ff test: consolidate test files into subdirectories
Move remaining top-level test files to appropriate subdirectories:
- test_system.py -> tests/sdk/
- test_system_learning.py -> tests/learning/
- test_integration*.py -> tests/integration/
- test_docker.py -> tests/deployment/
- test_rust_bridge.py -> tests/core/

Fix ROOT path in test_docker.py for new directory depth.
All 3772 tests pass, 57 skipped (optional deps).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-06 23:32:54 +00:00