forked from 0xWheatyz/SPARC
Add JWT auth flow tests: registration, login, protected routes, token refresh, and admin endpoints #689
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?
Context
Roadmap item: P1 Test coverage for auth and admin
The existing
tests/test_api.pybypasses authentication entirely. There are no tests for the JWT lifecycle, leaving regressions in auth logic undetected.Work to do
Acceptance criteria
pytest tests/from the project rootClosing as already implemented. Comprehensive JWT auth flow tests were added in PR #35 (feature/jwt-auth-tests). Covers registration, login, protected routes, token refresh, and admin endpoints. See tests/test_auth.py.