a
    -u°^§  ã                   @   sJ   d dl mZ d dlmZ d dlmZmZ ddlmZ G dd„ deeƒZ	dS )	é    )Úabsolute_import)ÚOAuth2TestsMixin)ÚMockedResponseÚTestCaseé   )ÚYandexProviderc                   @   s*   e Zd ZejZdZddd„Zd	dd„ZdS )
ÚYandexTestsa¯  
        {
            "login": "vasya",
                "old_social_login": "uid-mmzxrnry",
                    "default_email": "test@yandex.ru",
                        "id": "1000034426",
                            "client_id": "4760187d81bc4b7799476b42b5103713",
                                "emails": [
                                    "test@yandex.ru",
                                    "other-test@yandex.ru"
                                ],
                                "openid_identities": [
                                    "http://openid.yandex.ru/vasya/",
                                    "http://vasya.ya.ru/"
                                ]
        }Nc                 C   s   |d u r| j }td|ƒS )NéÈ   )Úyandex_datar   )ÚselfÚdata© r   úd/var/www/html/Ranjet/env/lib/python3.9/site-packages/allauth/socialaccount/providers/yandex/tests.pyÚget_mocked_response   s    zYandexTests.get_mocked_responseTc                 C   s   dS )Nzã
            {
                "access_token":"testac",
                "refresh_token":"1:GN686QVt0mmakDd9:A4pYuW9LGk0_UnlrMIWklk",
                "token_type":"bearer",
                "expires_in":124234123534
            }r   )r   Zwith_refresh_tokenr   r   r   Úget_login_response_json"   s    z#YandexTests.get_login_response_json)N)T)	Ú__name__Ú
__module__Ú__qualname__r   ÚidZprovider_idr
   r   r   r   r   r   r   r   	   s   
r   N)
Ú
__future__r   Zallauth.socialaccount.testsr   Zallauth.testsr   r   Zproviderr   r   r   r   r   r   Ú<module>   s   