forked from 0xWheatyz/SPARC
Add JWT authentication tests: registration, login, protected routes, admin endpoints #137
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
The existing
tests/test_api.pybypasses authentication entirely. There is no test coverage for the JWT flow, leaving login, registration, token refresh, and admin-only route enforcement untested.Work
tests/test_auth.py(or extendtest_api.py) with test cases for:Acceptance Criteria
pytestpasses cleanly with the new tests.References
Roadmap: P1 — Test coverage for auth and admin.
Closing: Comprehensive JWT authentication test suite exists in tests/test_auth.py. Resolved via PR #35.