U
    ¶[Öe  ã                   @   s(   d dl Z d dlmZ G dd„ deƒZdS )é    N)Ú
OAuth2Testc                   @   s  e Zd ZdZdZdZe dddœ¡Ze ddid	d
œgddddœddddddg dœddg dddœddddddddg ddœgid d!d"did#d$œ
gd%d&dœgd'œd(d"didd"didd)ddg ddœgidg dœd*ddd+dd,œd"did-dd.d/id0d"did"didg dœd1œid2œ¡Z	d3d4„ Z
d5d6„ Zd7S )8ÚFoursquareOAuth2Testz+social.backends.foursquare.FoursquareOAuth2z(https://api.foursquare.com/v2/users/selfZFooBarZfoobarZbearer)Zaccess_tokenÚ
token_typeZunreadCountr   ZnotificationTray)ÚitemÚtypeÚ
deprecatedéÈ   zMPlease provide an API version to avoid future errors.See http://bit.ly/vywCav)Z	errorTypeÚcodeZerrorDetailÚuserz8https://is0.4sqi.net/userpix_thumbs/BYKIT01VN4T4BISN.jpgFzFoo, BarZ1010101)ÚcountÚitemsé   ÚfriendszMutual friends)r   r   r   ÚnameÚ ZmaleZBazZfriendÚgroupsÚcreated)r   r   r   zBaz, QuxZQuxr   Z10101010)
ÚbioÚgenderÚ	firstNameÚrelationshipÚphotoÚlistsÚhomeCityÚlastNameÚtipsÚidZotherszOther friends)r   r   z	u-1010101ÚselfÚoffé2   )ÚmaxZcheckinsCountZgoalZrecentZFooÚemailzfoo@bar.comZBar)r   Zpingsr   r   Zbadgesr   Z
referralIdr   r   Ztodosr   r   r   ZphotosZcheckinPingsZscoresZcheckinsr   r   Úcontactr   Z	followingÚrequestsZ
mayorships)ZnotificationsÚmetaÚresponsec                 C   s   |   ¡  d S ©N)Zdo_login©r   © r(   úg/var/www/html/services/stratfitenv/lib/python3.8/site-packages/social/tests/backends/test_foursquare.pyÚ
test_login{   s    zFoursquareOAuth2Test.test_loginc                 C   s   |   ¡  d S r&   )Zdo_partial_pipeliner'   r(   r(   r)   Útest_partial_pipeline~   s    z*FoursquareOAuth2Test.test_partial_pipelineN)Ú__name__Ú
__module__Ú__qualname__Úbackend_pathZuser_data_urlZexpected_usernameÚjsonÚdumpsZaccess_token_bodyZuser_data_bodyr*   r+   r(   r(   r(   r)   r      sÎ   þ ÿüýþüýÿ ÿíèûþ" ÿ ÿýÿþü ÿ ÿ ÿ ÿþ©ÿómr   )r0   Zsocial.tests.backends.oauthr   r   r(   r(   r(   r)   Ú<module>   s   