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

26 lines
710 B
Python

# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from allauth.socialaccount.tests import OAuth2TestsMixin
from allauth.tests import MockedResponse, TestCase
from .provider import CILogonProvider
class CILogonTests(OAuth2TestsMixin, TestCase):
provider_id = CILogonProvider.id
def get_mocked_response(self):
return MockedResponse(
200,
"""
{
"email": "johndoe@example.edu",
"eppn": "u1234567@example.edu",
"firstname": "John",
"lastname": "Doe",
"idp_name": "Example University",
"sub": "http://cilogon.org/serverA/users/1234567"
}""",
)