Skip to content

Commit

Permalink
feat: add tests WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
juancarlospaco committed Jan 23, 2025
1 parent 16eed14 commit 5fe8c04
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions tests/_async/test_gotrue_admin_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
AuthError,
AuthInvalidCredentialsError,
AuthSessionMissingError,
AuthWeakPasswordError,
)

from .clients import (
Expand Down Expand Up @@ -576,14 +577,14 @@ async def test_update_user():
# assert e.to_dict()


# async def test_weak_phone_password_error():
# credentials = mock_user_credentials()
# try:
# await client_api_auto_confirm_off_signups_enabled_client().sign_up(
# {
# "phone": credentials.get("phone"),
# "password": "123",
# }
# )
# except AuthWeakPasswordError as e:
# assert e.to_dict()
async def test_weak_phone_password_error():
credentials = mock_user_credentials()
try:
await client_api_auto_confirm_off_signups_enabled_client().sign_up(
{
"phone": credentials.get("phone"),
"password": "123",
}
)
except (AuthWeakPasswordError, AuthApiError) as e:
assert e.to_dict()

0 comments on commit 5fe8c04

Please sign in to comment.