feat(test): unit tests — HTTP contract for every tool #17
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
For every tool in
server/gitea_mcp.py, assert:RuntimeErrorwith status codeDepends on #15 (infrastructure).
Scope
One test file per category (matches
CLAUDE.mdlayout):test_meta.pytest_repos.pytest_branches.pytest_files.pytest_issues.pytest_labels_milestones.pytest_pull_requests.pytest_releases.pytest_webhooks.pytest_users_orgs.pytest_commits.pytest_notifications.pyAcceptance criteria
uv run pytest tests/unit/ -vpassesuv run pytest --cov=server --cov-report=term-missingshows ≥ 90 % line coverage onserver/gitea_mcp.py