Commit Graph

8 Commits

Author SHA1 Message Date
Nitzan Pomerantz ae7f7f51c5 Finalize phase 4.1 2025-10-28 00:58:43 +02:00
Nitzan Pomerantz ff8c7e6509 Complete Phase 4.1 test suite updates - all 174 tests passing
Fixed all remaining test failures after Pydantic v2 migration:

Core fixes:
- Date handling: Convert date objects to ISO strings across 4 files
- Model serialization: Use model_dump(mode='json') for JSON compatibility
- Optional fields: Made time_period_months Optional[int] in models
- Dict access: Replace .get() with getattr() for dynamic attributes

Test updates:
- Updated 50+ test fixtures from dicts to Deal models
- Fixed date-based tests to use recent dates for time filtering
- Added missing imports (CoordinatePoint, MarketActivityScore, DealStatistics)
- Updated assertions from dict keys to model attributes (snake_case)

Files modified:
- nadlan_mcp/govmap/market_analysis.py
- nadlan_mcp/govmap/statistics.py
- nadlan_mcp/govmap/models.py
- nadlan_mcp/fastmcp_server.py
- tests/test_govmap_client.py
- tests/test_fastmcp_tools.py
- .cursor/plans/TEST-UPDATE-STATUS.md (comprehensive documentation)

Result: 174/174 tests passing (100%) 

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-26 23:55:42 +02:00
Nitzan Pomerantz 0ac9d136cd Implementation of phase 4.1 2025-10-26 10:58:46 +02:00
Nitzan Pomerantz 4cb70c547b Updated status in TASKS.md 2025-10-26 09:54:13 +02:00
Nitzan Pomerantz 43d031d7c1 Getting ready for phase 3 2025-10-24 23:36:58 +03:00
Nitzan Pomerantz d9e42bea17 Some more small fixes 2025-10-23 00:11:41 +03:00
Nitzan Pomerantz 7780d89bb4 Update tasks and plan 2025-10-19 01:02:36 +03:00
Nitzan Pomerantz ffd7c84aa7 Added plan 2025-10-19 00:57:50 +03:00