forked from 0xWheatyz/SPARC
Tests: add JWT authentication flow tests covering registration, login, protected routes, and admin endpoints #277
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?
Problem
The existing API tests in tests/test_api.py bypass authentication entirely. The JWT flow (register, login, token issuance, protected-route enforcement, token refresh, admin-only access) has no automated test coverage, meaning auth regressions could ship undetected.
Acceptance Criteria
References
Roadmap: P1 Test coverage for auth and admin.