o
    "4g                     @   s>   d dl mZ d dlmZmZ ddlmZ G dd deeZdS )    )OAuth2TestsMixin)MockedResponseTestCase   )DwollaProviderc                   @   s,   e Zd ZejZdd Zd	ddZdd ZdS )
DwollaTestsc                 C   s
   t ddS )N   z{
            "id": "123",
            "_links":{"account":{"href":"http://localhost"}},
            "name":"John Doe"
        })r   self r   u/var/www/html/authentication-server/venv/lib/python3.10/site-packages/allauth/socialaccount/providers/dwolla/tests.pyget_mocked_response
   s   zDwollaTests.get_mocked_responseTc                 C   s   d}|rd}d| S )N z,"refresh_token": "testrf"z{
            "uid":"weibo",
            "access_token":"testac",
            "_links":{"account":{"href":"http://localhost"}}
            %s }r   )r
   with_refresh_tokenrtr   r   r   get_login_response_json   s   z#DwollaTests.get_login_response_jsonc                 C   s   dS )NzJohn Doer   r	   r   r   r   get_expected_to_str!   s   zDwollaTests.get_expected_to_strN)T)	__name__
__module____qualname__r   idprovider_idr   r   r   r   r   r   r   r      s
    

r   N)allauth.socialaccount.testsr   allauth.testsr   r   providerr   r   r   r   r   r   <module>   s    