Auth service tests update

This commit is contained in:
2025-09-24 21:44:48 +02:00
parent 8b86b3225a
commit f9879126c8
6 changed files with 436 additions and 192 deletions

View File

@@ -3,8 +3,8 @@
Authentication and authorization specific exceptions.
"""
from typing import Any, Dict, Optional
from .base import AuthenticationException, AuthorizationException
from typing import Optional
from .base import AuthenticationException, AuthorizationException, ConflictException
class InvalidCredentialsException(AuthenticationException):
@@ -76,7 +76,7 @@ class AdminRequiredException(AuthorizationException):
)
class UserAlreadyExistsException(AuthenticationException):
class UserAlreadyExistsException(ConflictException):
"""Raised when trying to register with existing username/email."""
def __init__(