test(auth): T22 add comprehensive auth endpoint tests

Add test suite for authentication with:
- 5 register tests: success, duplicate email, weak password, password mismatch, invalid email
- 4 login tests: success, invalid email, wrong password, inactive user
- 3 logout tests: success, no token, invalid token
- 3 get_current_user tests: expired token, missing sub claim, nonexistent user

Test coverage: 15 tests for auth router + 19 tests for auth schemas = 34 total
Coverage: 98%+ for auth modules

Files:
- tests/unit/routers/test_auth.py
- tests/unit/schemas/test_auth_schemas.py
This commit is contained in:
Luca Sacchi Ricciardi
2026-04-07 13:58:03 +02:00
parent 1fe5e1b031
commit 4dea358b81

Diff Content Not Available