Files
GNX-mailEnterprise/venv/lib/python3.12/site-packages/allauth/socialaccount/providers/auth0/tests.py
Iliyan Angelov c67067a2a4 Mail
2025-09-14 23:24:25 +03:00

24 lines
691 B
Python

# -*- coding: utf-8 -*-
from allauth.socialaccount.providers.auth0.provider import Auth0Provider
from allauth.socialaccount.tests import OAuth2TestsMixin
from allauth.tests import MockedResponse, TestCase
class Auth0Tests(OAuth2TestsMixin, TestCase):
provider_id = Auth0Provider.id
def get_mocked_response(self):
return MockedResponse(
200,
"""
{
"picture": "https://secure.gravatar.com/avatar/123",
"email": "mr.bob@your.Auth0.server.example.com",
"id": 2,
"sub": 2,
"identities": [],
"name": "Mr Bob"
}
""",
)