o
    ˷eE                     @   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S )DwollaTestsc                 C   s
   t ddS )N   z{
            "id": "123",
            "_links":{"account":{"href":"http://localhost"}},
            "name":"John Doe"
        })r   )self r
   b/var/www/ideatree/venv/lib/python3.10/site-packages/allauth/socialaccount/providers/dwolla/test.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_jsonN)T)__name__
__module____qualname__r   idprovider_idr   r   r
   r
   r
   r   r      s    
r   N)allauth.socialaccount.testsr   allauth.testsr   r   providerr   r   r
   r
   r
   r   <module>   s    