o
    úLfë  ã                   @   sL   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dd„ Z	d	S )
é    )ÚHttpResponseRedirect)Úreverse)ÚDefaultAccountAdapter)ÚImmediateHttpResponsec                   @   s   e Zd Zdd„ ZdS )ÚPreLoginRedirectAccountAdapterc                 O   s   t tdƒƒ‚)Nú/foo)r   r   )ÚselfÚargsÚkwargs© r   úc/var/www/html/humari/django-venv/lib/python3.10/site-packages/allauth/account/tests/test_adapter.pyÚ	pre_login	   s   z(PreLoginRedirectAccountAdapter.pre_loginN)Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r      s    r   c                 C   s@   d| _ | tdƒ|j|dœ¡}|jdksJ ‚|d dksJ ‚d S )NzAallauth.account.tests.test_adapter.PreLoginRedirectAccountAdapterÚaccount_login)ÚloginÚpasswordi.  Úlocationr   )ÚACCOUNT_ADAPTERÚpostr   ÚusernameÚstatus_code)ÚsettingsÚuserÚuser_passwordÚclientÚrespr   r   r   Útest_adapter_pre_login   s   ÿ
þr   N)
Údjango.httpr   Údjango.urlsr   Úallauth.account.adapterr   Úallauth.core.exceptionsr   r   r   r   r   r   r   Ú<module>   s    