forked from 0xWheatyz/SPARC
Add JWT auth tests covering registration, login, protected routes, and admin endpoints #1074
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 reference: P1 / Test coverage for auth and admin
The existing
tests/test_api.pybypasses authentication entirely. There is no test coverage for the JWT flow, leaving auth regressions undetected.What to do
tests/test_auth.py(or extendtest_api.py) covering:pytestwithhttpx.AsyncClient(or the existing test client pattern).Acceptance criteria
pytestlocally and in CI.Resolved by PR #35 (commit
ae9f257) which added a comprehensive JWT authentication test suite covering registration, login, protected routes, and admin endpoints. Closing as complete.