test: unit tests for SubmitReview and ApplyLabel client methods #130
Reference in New Issue
Block a user
Delete Branch "feature/unit-tests-submit-review-apply-label-127"
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
TestApplyLabelandTestApplyLabel_Errortesting the label application API callTestSubmitReviewandTestSubmitReview_Errortesting the PR review submission API callhttptest.NewServerfollowing the existing pattern in client_test.goCloses #127
Test plan
TestApplyLabelpasses -- verifies POST to correct path with label IDsTestApplyLabel_Errorpasses -- verifies 404 error propagationTestSubmitReviewpasses -- verifies POST with event and body fieldsTestSubmitReview_Errorpasses -- verifies 422 error propagation🤖 Generated with Claude Code