
    )Jf                     X    d dl mZ d dlmZ d dlmZ d dlmZ  G d de          Zd Z	dS )	    )HttpResponseRedirect)reverse)DefaultAccountAdapter)ImmediateHttpResponsec                       e Zd Zd ZdS )PreLoginRedirectAccountAdapterc                 :    t          t          d                    )N/foo)r   r   )selfargskwargss      e/home/alex/cs2snipeproduction/venv/lib/python3.11/site-packages/allauth/account/tests/test_adapter.py	pre_loginz(PreLoginRedirectAccountAdapter.pre_login	   s    #$8$@$@AAA    N)__name__
__module____qualname__r    r   r   r   r      s(        B B B B Br   r   c                     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resps        r   test_adapter_pre_loginr#      sl    K  ;;  -];; D s""""
v%%%%%%r   N)
django.httpr   django.urlsr   allauth.account.adapterr   allauth.core.exceptionsr   r   r#   r   r   r   <module>r(      s    , , , , , ,       9 9 9 9 9 9 9 9 9 9 9 9B B B B B%: B B B
	& 	& 	& 	& 	&r   