o
    LfB                     @   s^   d dl mZ d dlmZ d dlZd dlmZmZ ejdd Z	ejdd Z
ejd	d
 ZdS )    contextmanager)patchN)recovery_codestotpc                 C   s   t j| t   | S N)r   TOTPactivategenerate_totp_secretuser r   [/var/www/html/humari/django-venv/lib/python3.10/site-packages/allauth/mfa/tests/conftest.pyuser_with_totp	   s   r   c                 C   s   t j|  | S r   )r   RecoveryCodesr	   r   r   r   r   user_with_recovery_codes   s   r   c                  C   s   t dd } | S )Nc                  s   s<    t d} d| _d V  W d    d S 1 sw   Y  d S )Nz#allauth.mfa.totp.validate_totp_codeT)r   return_value)mr   r   r   f   s
   
"z!totp_validation_bypass.<locals>.fr   )r   r   r   r   totp_validation_bypass   s   
r   )
contextlibr   unittest.mockr   pytestallauth.mfar   r   fixturer   r   r   r   r   r   r   <module>   s    

