U
    ÓZj  ã                   @   s    d dl mZ G dd„ deƒZdS )é    )ÚFlaskClientc                       s    e Zd ZdZ‡ fdd„Z‡  ZS )ÚFlaskLoginClientza
    A Flask test client that knows how to log in users
    using the Flask-Login extension.
    c              	      sV   |  dd ¡}|  dd¡}tƒ j||Ž |rR|  ¡ �}| ¡ |d< ||d< W 5 Q R X d S )NÚuserZfresh_loginTZ_user_idZ_fresh)ÚpopÚsuperÚ__init__Zsession_transactionZget_id)ÚselfÚargsÚkwargsr   ZfreshÚsess©Ú	__class__© úZ/var/www/html/TRUCKING_PROJECT/venv/lib/python3.8/site-packages/flask_login/test_client.pyr   
   s    
zFlaskLoginClient.__init__)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Ú__classcell__r   r   r   r   r      s   r   N)Zflask.testingr   r   r   r   r   r   Ú<module>   s   