feat(tests): add comprehensive unit test suite (v1.4.0)

- Add 38 unit tests covering fw_client, recipes, lists, and server modules
- Test error handling: top-level ex/un, nested a00.un.un/a00.ex.ex, successful responses
- Test ingredients_parsed parser: newlines, empty lines, commas, headings
- Test list name translation: SYS-CAT-SHOPPINGLIST, SYS-CAT-TODOS, unknown names
- Test date validation: ISO YYYY-MM-DD format enforcement
- Test error response helper: JSON format, Unicode, special characters
- All tests use unittest.mock (stdlib), no external mocking libraries
- No API calls — all HTTP interactions mocked
- Framework: pytest with asyncio support
- Run: uv run pytest tests/test_unit.py -v

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-04-17 23:39:17 +02:00
parent 35cbfd3061
commit 09bd24a9e1
2 changed files with 18 additions and 1 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "mcp-familywall"
version = "1.3.1"
version = "1.4.0"
description = "MCP server for Family Wall — manage your family's circles, lists, tasks, recipes, and meal plan via Claude"
readme = "README.md"
requires-python = ">=3.12"