o
    š"4gp  ã                   @   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é   )ÚStripeProviderc                   @   s,   e Zd ZejZdd„ Zdd„ Zd	dd„ZdS )
ÚStripeTestsc                 C   s
   t ddƒS )NéÈ   aÐ  {
          "id": "acct_sometestid",
          "object": "account",
          "business_logo": null,
          "business_name": null,
          "business_url": "example.com",
          "charges_enabled": true,
          "country": "SE",
          "currencies_supported": [
            "usd",
            "eur",
            "sek"
          ],
          "default_currency": "eur",
          "details_submitted": true,
          "display_name": "Test",
          "email": "test@example.com",
          "managed": false,
          "metadata": {},
          "statement_descriptor": "TEST.COM",
          "support_phone": "+460123456789",
          "timezone": "Europe/Stockholm",
          "transfers_enabled": true
        })r   ©Úself© r   úu/var/www/html/authentication-server/venv/lib/python3.10/site-packages/allauth/socialaccount/providers/stripe/tests.pyÚget_mocked_response
   s   þzStripeTests.get_mocked_responsec                 C   s   dS )Nztest@example.comr   r	   r   r   r   Úget_expected_to_str'   s   zStripeTests.get_expected_to_strTc                 C   s   d}|rd}d| S )NÚ z,"refresh_token": "testrf"a$  {
            "uid":"weibo",
            "access_token":"testac",
            "livemode": false,
            "token_type": "bearer",
            "stripe_publishable_key": "pk_test_someteskey",
            "stripe_user_id": "acct_sometestid",
            "scope": "read_write"
            %s }r   )r
   Úwith_refresh_tokenÚrtr   r   r   Úget_login_response_json*   s   	÷ÿz#StripeTests.get_login_response_jsonN)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    