U
    [ew                     @   sd   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ZG dd deZ	G d	d
 d
eZ
dS )    )	HTTPError)	urlencode)AuthCanceled)
OAuth1Testc                   @   sJ   e Zd ZdZdZedddddddZed	dd
dZdd Zdd Z	dS )EvernoteOAuth1Testz&social.backends.evernote.EvernoteOAuthZ101010z&https://sandbox.evernote.com/shard/s1/s1ZfoobarZ1395118279645z/https://sandbox.evernote.com/shard/s1/notestore)Zedam_webApiUrlPrefixZ
edam_shardoauth_tokenZedam_expiresZedam_userIdZedam_noteStoreUrlzfoobar-secrettrue)Zoauth_token_secretr   Zoauth_callback_confirmedc                 C   s   |    d S N)do_loginself r   e/var/www/html/services/stratfitenv/lib/python3.8/site-packages/social/tests/backends/test_evernote.py
test_login   s    zEvernoteOAuth1Test.test_loginc                 C   s   |    d S r
   )do_partial_pipeliner   r   r   r   test_partial_pipeline   s    z(EvernoteOAuth1Test.test_partial_pipelineN)
__name__
__module____qualname__backend_pathZexpected_usernamer   Zaccess_token_bodyZrequest_token_bodyr   r   r   r   r   r   r   	   s"   r   c                   @   s    e Zd ZdZdd Zdd ZdS )EvernoteOAuth1CanceledTesti  c              	   C   s4   |  t}|   W 5 Q R X | |jjd k	 d S r
   )assertRaisesr   r   
assertTrue	exceptionresponser   cmr   r   r   r   $   s    z%EvernoteOAuth1CanceledTest.test_loginc              	   C   s4   |  t}|   W 5 Q R X | |jjd k	 d S r
   )r   r   r   r   r   r   r   r   r   r   r   )   s    z0EvernoteOAuth1CanceledTest.test_partial_pipelineNr   r   r   Zaccess_token_statusr   r   r   r   r   r   r   !   s   r   c                   @   s    e Zd ZdZdd Zdd ZdS )EvernoteOAuth1ErrorTesti  c              	   C   s"   |  t |   W 5 Q R X d S r
   )r   r   r   r   r   r   r   r   2   s    z"EvernoteOAuth1ErrorTest.test_loginc              	   C   s"   |  t |   W 5 Q R X d S r
   )r   r   r   r   r   r   r   r   6   s    z-EvernoteOAuth1ErrorTest.test_partial_pipelineNr   r   r   r   r   r   /   s   r   N)requestsr   Z	social.p3r   Zsocial.exceptionsr   Zsocial.tests.backends.oauthr   r   r   r   r   r   r   r   <module>   s   