U
    !d                     @   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__ ;/tmp/pip-unpacked-wheel-9qbqs8oa/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   