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 b757e7a commit aa24af7
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/_sync/test_gotrue_admin_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,3 +497,24 @@ def test_list_factors():
factors = client._list_factors()
assert factors
assert isinstance(factors.totp, list) and isinstance(factors.phone, list)


def test_start_auto_refresh_token():
credentials = mock_user_credentials()
client = auth_client()
client._auto_refresh_token = True
client.sign_up(
{
"email": credentials.get("email"),
"password": credentials.get("password"),
}
)

client.sign_in_with_password(
{
"email": credentials.get("email"),
"password": credentials.get("password"),
}
)

assert client._start_auto_refresh_token(2.0) is None

0 comments on commit aa24af7

Please sign in to comment.