U
    [e                     @   sP   d dl Z d dlmZ d dlmZ d dlmZ d dlmZm	Z	 G dd de	Z
dS )    N)	HTTPretty)	urlencode)AuthForbidden)
OAuth1Test
OAuth2Testc                	   @   sV   e Zd ZdZdZdZeddddddd	Zed
dddddZ	dd Z
dd ZdS )UberOAuth2Testzhttps://api.uber.com/v1/mezsocial.backends.uber.UberOAuth2zfoo@bar.comZFooZBarzhttps://Zbarfooz$91d81273-45c2-4b57-8124-d0165f8240c0)Z
first_name	last_nameemailZpictureZ
promo_codeuuidZEE1IDxytP04tJ767GbjH7ED9PpGmYvLZBeareri ' ZZx8fJ8qdSRRseIVlsGgtgQ4wnZBehrzprofile history request)Zaccess_token
token_typeZ
expires_inZrefresh_tokenscopec                 C   s   |    d S N)Zdo_loginself r   a/var/www/html/services/stratfitenv/lib/python3.8/site-packages/social/tests/backends/test_uber.py
test_login    s    zUberOAuth2Test.test_loginc                 C   s   |    d S r   )Zdo_partial_pipeliner   r   r   r   test_partial_pipeline#   s    z$UberOAuth2Test.test_partial_pipelineN)__name__
__module____qualname__Zuser_data_urlbackend_pathZexpected_usernamejsondumpsZuser_data_bodyZaccess_token_bodyr   r   r   r   r   r   r   
   s(   	r   )r   Z	httprettyr   Z	social.p3r   Zsocial.exceptionsr   Zsocial.tests.backends.oauthr   r   r   r   r   r   r   <module>   s
   