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didd	d
œddg dddœ¡Z	dd„ Z
dd„ ZdS )ÚSpotifyOAuth2Testz%social.backends.spotify.SpotifyOAuth2zhttps://api.spotify.com/v1/meZfoobarZbearer)Zaccess_tokenÚ
token_typeNZspotifyz$https://open.spotify.com/user/foobarr   )ÚhrefÚtotalz'https://api.spotify.com/v1/users/foobarÚuserzspotify:user:foobar)Zdisplay_nameZexternal_urlsZ	followersr   ÚidZimagesÚtypeÚuric                 C   s   |   ¡  d S ©N)Zdo_login©Úself© r   úd/var/www/html/services/stratfitenv/lib/python3.8/site-packages/social/tests/backends/test_spotify.pyÚ
test_login   s    zSpotifyOAuth2Test.test_loginc                 C   s   |   ¡  d S r   )Zdo_partial_pipeliner   r   r   r   Útest_partial_pipeline!   s    z'SpotifyOAuth2Test.test_partial_pipeline)Ú__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.   þ ÿþór   )r   Zsocial.tests.backends.oauthr   r   r   r   r   r   Ú<module>   s   