diff --git a/tests/_async/test_client_with_auto_confirm_enabled.py b/tests/_async/test_client_with_auto_confirm_enabled.py index 7e9f9495..c89dd700 100644 --- a/tests/_async/test_client_with_auto_confirm_enabled.py +++ b/tests/_async/test_client_with_auto_confirm_enabled.py @@ -340,10 +340,10 @@ async def test_get_update_user_after_sign_out(client: AsyncGoTrueClient): @pytest.mark.depends(on=[test_get_user_after_sign_out.__name__]) async def test_sign_in_with_the_wrong_password(client: AsyncGoTrueClient): try: - await client.sign_in(email=email, password=password + "2") + await client.sign_in(email=email, password=f"{password}2") assert False except APIError: - assert True + pass except Exception as e: assert False, str(e) @@ -422,8 +422,9 @@ async def test_get_session_from_url_errors(client: AsyncGoTrueClient): error_description = fake.email() try: await client.get_session_from_url( - url=dummy_url + f"?error_description={error_description}" + url=f"{dummy_url}?error_description={error_description}" ) + assert False except APIError as e: assert e.code == 400 diff --git a/tests/_sync/test_client_with_auto_confirm_enabled.py b/tests/_sync/test_client_with_auto_confirm_enabled.py index 6291ad4a..338ec7fb 100644 --- a/tests/_sync/test_client_with_auto_confirm_enabled.py +++ b/tests/_sync/test_client_with_auto_confirm_enabled.py @@ -332,10 +332,10 @@ def test_get_update_user_after_sign_out(client: SyncGoTrueClient): @pytest.mark.depends(on=[test_get_user_after_sign_out.__name__]) def test_sign_in_with_the_wrong_password(client: SyncGoTrueClient): try: - client.sign_in(email=email, password=password + "2") + client.sign_in(email=email, password=f"{password}2") assert False except APIError: - assert True + pass except Exception as e: assert False, str(e) @@ -414,8 +414,9 @@ def test_get_session_from_url_errors(client: SyncGoTrueClient): error_description = fake.email() try: client.get_session_from_url( - url=dummy_url + f"?error_description={error_description}" + url=f"{dummy_url}?error_description={error_description}" ) + assert False except APIError as e: assert e.code == 400