
    )JfB                         d dl mZ d dlmZ d dlZd dlmZmZ ej        d             Z	ej        d             Z
ej        d             ZdS )    contextmanager)patchN)recovery_codestotpc                 h    t           j                            | t          j                               | S N)r   TOTPactivategenerate_totp_secretusers    ]/home/alex/cs2snipeproduction/venv/lib/python3.11/site-packages/allauth/mfa/tests/conftest.pyuser_with_totpr   	   s(    ItT688999K    c                 D    t           j                            |            | S r	   )r   RecoveryCodesr   r   s    r   user_with_recovery_codesr      s     ))$///Kr   c                  &    t           d             } | S )Nc               3   p   K   t          d          5 } d| _        d V  d d d            d S # 1 swxY w Y   d S )Nz#allauth.mfa.totp.validate_totp_codeT)r   return_value)ms    r   fz!totp_validation_bypass.<locals>.f   s      899 	Q!ANEEE	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	s   +//r   )r   s    r   totp_validation_bypassr      s"      ^
 Hr   )
contextlibr   unittest.mockr   pytestallauth.mfar   r   fixturer   r   r    r   r   <module>r!      s    % % % % % %        , , , , , , , ,   
   
     r   