o
    Lf                     @   sZ   d dl mZ d dlZd dlmZ ejddddgfddddgfdddgfgd	d
 ZdS )    )reverseN)get_adapterz0with_totp,with_password,expected_method_urlnamesFTaccount_reauthenticatemfa_reauthenticatec           	      C   s   | ||rd ndd}|  |ksJ || t |}t|t|ks'J tdd |D ttt|ks9J dD ]&}|t|d }||v rR|j	dksQJ q;|j	dksYJ d	|d
 v saJ q;d S )N!)	with_totppasswordc                 S   s   g | ]}|d  qS )url ).0mr
   r
   l/var/www/html/humari/django-venv/lib/python3.10/site-packages/allauth/account/tests/test_reauthentication.py
<listcomp>   s    z+test_user_with_mfa_only.<locals>.<listcomp>)r   r   z
?next=/foo   i.  znext=%2Ffoolocation)
has_usable_passwordforce_loginr   get_reauthentication_methodslensetmapr   getstatus_code)	user_factoryr   with_passwordexpected_method_urlnamesclientusermethodsurlnamerespr
   r
   r   test_user_with_mfa_only   s   

r!   )django.urlsr   pytestallauth.account.adapterr   markparametrizer!   r
   r
   r
   r   <module>   s    

