Nitzan Pomerantz
|
39266ea6e4
|
Add comprehensive unit tests for Phase 3 refactoring
Test Coverage Expansion:
- Increased from 34 to 138 tests (+304% improvement)
- All tests passing in 0.50s
New Test Files:
1. tests/govmap/test_validators.py (32 tests)
- Complete coverage for address validation
- Coordinate validation with ITM bounds checking
- Positive integer validation with edge cases
- Deal type validation
2. tests/govmap/test_utils.py (36 tests)
- Distance calculation tests (Euclidean, diagonal, symmetric)
- Address matching tests (case sensitivity, substring matching)
- Comprehensive Hebrew floor parsing (all 12 Hebrew floor names)
- Edge cases for floor extraction
3. tests/test_fastmcp_tools.py (36 tests)
- E2E tests for all 10 MCP tools
- Tests correct JSON formatting
- Tests bloat field stripping
- Tests error handling
- Tests edge cases (no results, invalid input)
Test Quality:
- All edge cases covered
- Hebrew floor names: קרקע, מרתף, ראשונה-עשירית
- Mock-based for fast execution
- Clear test names and documentation
Updated Documentation:
- Updated TEST_COVERAGE_REPORT.md with new test statistics
- Documented all test categories and coverage
Result: Comprehensive test coverage across all refactored modules
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-10-25 13:55:37 +03:00 |
|