From 4dea358b810aa19c95cdd6eb2e1d49695195441e Mon Sep 17 00:00:00 2001 From: Luca Sacchi Ricciardi Date: Tue, 7 Apr 2026 13:58:03 +0200 Subject: [PATCH] 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