o
    h                     @   sF   d dl mZ d dlmZ d dlmZ ddlmZ G dd deeZdS )	    )TestCase)OAuth2TestsMixinMockedResponse   )MailRuProviderc                   @   s.   e Zd ZejZd	ddZd	ddZdd ZdS )
MailRuTestsTc                 C   s
   t ddS )N   u  
[ { "uid": "15410773191172635989", "first_name": "Евгений", "last_name": "Маслов", "nick": "maslov", "email": "emaslov@mail.ru", "sex": 0,  "birthday": "15.02.1980",  "has_pic": 1, "pic": "http://avt.appsmail.ru/mail/emaslov/_avatar",  "pic_small": "http://avt.appsmail.ru/mail/emaslov/_avatarsmall",  "pic_big": "http://avt.appsmail.ru/mail/emaslov/_avatarbig", "link": "http://my.mail.ru/mail/emaslov/", "referer_type": "", "referer_id": "", "is_online": 1, "friends_count": 145, "is_verified": 1, "vip" : 0, "app_installed": 1, "location": { "country": { "name": "Россия", "id": "24" }, "city": { "name": "Москва", "id": "25" }, "region": { "name": "Москва", "id": "999999" } } }]r   )selfverified_email r   g/var/www/html/env_mimamsha/lib/python3.10/site-packages/allauth/socialaccount/providers/mailru/tests.pyget_mocked_response   s   zMailRuTests.get_mocked_responsec                 C      dS )NzZ{"access_token": "testac", "uid": "weibo", "refresh_token": "testrf", "x_mailru_vid": "1"}r   )r
   with_refresh_tokenr   r   r   get_login_response_json   s   z#MailRuTests.get_login_response_jsonc                 C   r   )Nzemaslov@mail.rur   )r
   r   r   r   get_expected_to_str   s   zMailRuTests.get_expected_to_strN)T)	__name__
__module____qualname__r   idprovider_idr   r   r   r   r   r   r   r   	   s
    

r   N)	django.testr   allauth.socialaccount.testsr   allauth.testsr   providerr   r   r   r   r   r   <module>   s
    