test: add unit tests for SubmitReview and ApplyLabel methods in gitea/client.go #115
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?
Summary
The handler integration tests (#110, #111) verify HTTP-level behavior but do not exercise the Gitea SDK client methods directly.
SubmitReview()andApplyLabel()ininternal/gitea/client.goare write operations that should have unit-level tests with a mock HTTP server to validate request construction.What to Do
httptest.Serverthat mimics the Gitea API endpointClosing as duplicate of #127, which supersedes this issue with more detailed acceptance criteria and test function specs.
Repo Manager Triage (2026-03-28)
Priority: P2 | Size: Small | Assignee: AI-QA
Unit tests for
SubmitReview()andApplyLabel()ininternal/gitea/client.go. These are self-contained tests usinghttptest.Server-- no external dependencies or blockers. Can be started immediately.Action: Assigned to AI-QA for implementation. This pairs well with #110 and #111 which test the HTTP handler layer for the same features.