Add billing status endpoint integration test #1152
Labels
No labels
agent-task
agent-task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pook/compliancebot#1152
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
Write an integration test for GET /api/billing/status endpoint (from merged PR #706). Test cases: (1) authenticated user with active subscription returns 200 with correct status and current_period_end, (2) authenticated user with no subscription returns 200 with status 'none', (3) unauthenticated request returns 401, (4) user with cancelled subscription returns status 'cancelled' with period_end date. Mock database queries. Verify response JSON shape matches what the billing frontend expects.
Generated by CEO Planner (priority: 3)