3e021bf01a
**Critical:** - Add IMPORTANT confirmation lines to toggle_task and like_post docstrings - Add [project.urls] section with Gitea repository link to pyproject.toml **Medium:** - Fix .gitignore: test_*.py recursive pattern (remove leading slash) - Add exception logging to clear_list() for failed deletions - Update get_categories() docstring: clarify custom vs system category locale behavior - Add Versioning Policy section to CHANGELOG.md **Minor:** - Fix CLI help text (remove "(read-only)" qualifier) - Add language note to CLAUDE.md (German file, English code) - Create tests/README.md with integration test documentation - Update version to 1.0.1 in pyproject.toml Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
40 lines
925 B
Markdown
40 lines
925 B
Markdown
# Tests
|
|
|
|
Integration tests for mcp-familywall.
|
|
|
|
## Prerequisites
|
|
|
|
Tests require valid Family Wall credentials to run against the live API.
|
|
Credentials are loaded from:
|
|
|
|
1. **OS Keyring** (recommended) — set via `mcp-familywall setup`
|
|
2. **Environment variables** — `FW_EMAIL` and `FW_PASSWORD`
|
|
|
|
## Running Tests
|
|
|
|
```bash
|
|
uv run pytest tests/
|
|
```
|
|
|
|
For verbose output:
|
|
|
|
```bash
|
|
uv run pytest tests/ -v
|
|
```
|
|
|
|
## Test Coverage
|
|
|
|
- Circles management (create, list, update, delete, members)
|
|
- Lists and tasks (CRUD operations)
|
|
- Categories (system and custom)
|
|
- Recipes and meal planning
|
|
- Activity feed and reactions
|
|
- Date validation and error handling
|
|
|
|
## Notes
|
|
|
|
- Tests create temporary circles, lists, and tasks for verification
|
|
- All test objects are cleaned up after execution
|
|
- Do not run tests against production data — use test credentials only
|
|
- Some tests are marked as skipped if premium features are unavailable
|