forked from 0xWheatyz/SPARC
Add JWT auth integration tests covering registration, login, and protected routes #73
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
Existing API tests in
tests/test_api.pybypass authentication entirely. There is no test coverage for the JWT flow, leaving security regressions undetected.Work
tests/test_auth.py(or equivalent) that tests:Acceptance Criteria
auth.pyreaches at least 80%.References
Roadmap: Test coverage for auth and admin.
Resolved. Comprehensive JWT auth integration tests added covering registration, login, and protected endpoints. Implemented in PR #35 (merged). See
tests/test_auth.py.