Auth service tests update
This commit is contained in:
@@ -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__(
|
||||
|
||||
Reference in New Issue
Block a user