forked from 0xWheatyz/SPARC
Add JWT auth flow tests for registration, login, protected routes, and admin endpoints #1356
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
tests/test_api.pybypasses authentication entirely. There is no test coverage for the JWT flow, meaning regressions in auth logic go undetected.What to do
tests/test_api.py(or a newtests/test_auth.py) covering:Acceptance criteria
pytest.auth.pyis at or above 80%.[Repo Manager] This issue has already been resolved on the main branch. Verified by code inspection during triage. Closing.