Revert "feat: email register refactor" (#25367)
This commit is contained in:
parent
598ec07c91
commit
ea61420441
34 changed files with 79 additions and 1916 deletions
|
|
@ -13,6 +13,7 @@ from services.account_service import AccountService, RegisterService, TenantServ
|
|||
from services.errors.account import (
|
||||
AccountAlreadyInTenantError,
|
||||
AccountLoginError,
|
||||
AccountNotFoundError,
|
||||
AccountPasswordError,
|
||||
AccountRegisterError,
|
||||
CurrentPasswordIncorrectError,
|
||||
|
|
@ -138,7 +139,7 @@ class TestAccountService:
|
|||
fake = Faker()
|
||||
email = fake.email()
|
||||
password = fake.password(length=12)
|
||||
with pytest.raises(AccountPasswordError):
|
||||
with pytest.raises(AccountNotFoundError):
|
||||
AccountService.authenticate(email, password)
|
||||
|
||||
def test_authenticate_banned_account(self, db_session_with_containers, mock_external_service_dependencies):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue