U
    ¶[Öe  ã                   @   s4   d dl Z d dlmZ d dlmZ G dd„ deƒZdS )é    N)Ú	urlencode)Ú
OAuth1Testc                   @   s~   e Zd ZdZdZeddddœƒZeddddœƒZd	Ze	 
d
ddddddddddddddddddddœi¡Zdd„ Zdd„ ZdS )ÚFitbitOAuth1Testz#social.backends.fitbit.FitbitOAuth1Zfoobarza-secretZ101010)Úoauth_token_secretZencoded_user_idÚoauth_tokenzfoobar-secretÚtrue)r   r   Zoauth_callback_confirmedz,https://api.fitbit.com/1/user/-/profile.jsonÚuserÚen_USr   gÍÌÌÌÌLO@ZNAz
2011-12-26i€zþzAmerica/Los_AngelesÚ z@http://www.fitbit.com/images/profile/defaultProfile_100_male.gif)Z
weightUnitZstrideLengthWalkingZdisplayNameÚweightZfoodsLocaleZ
heightUnitÚlocaleZgenderZmemberSinceZoffsetFromUTCMillisÚheightÚtimezoneZdateOfBirthZ	encodedIdZavatarZ	waterUnitZdistanceUnitZglucoseUnitZstrideLengthRunningc                 C   s   |   ¡  d S ©N)Zdo_login©Úself© r   úc/var/www/html/services/stratfitenv/lib/python3.8/site-packages/social/tests/backends/test_fitbit.pyÚ
test_login.   s    zFitbitOAuth1Test.test_loginc                 C   s   |   ¡  d S r   )Zdo_partial_pipeliner   r   r   r   Útest_partial_pipeline1   s    z&FitbitOAuth1Test.test_partial_pipelineN)Ú__name__Ú
__module__Ú__qualname__Úbackend_pathZexpected_usernamer   Zaccess_token_bodyZrequest_token_bodyZuser_data_urlÚjsonÚdumpsZuser_data_bodyr   r   r   r   r   r   r      sL   ýýìÿr   )r   Z	social.p3r   Zsocial.tests.backends.oauthr   r   r   r   r   r   Ú<module>   s   