î
ß^Q\ç  ã               @   sÑ   d  d l  Z  d  d l m Z m Z m Z m Z m Z m Z e  j j	 d ƒ Z
 e  j j	 d d d ƒ Z e  j j	 d ƒ Z e  j j	 d ƒ Z e  j d d „  ƒ Z e  j d	 d
 d d ƒ d d „  ƒ Z d d „  Z d S)é    N)ÚHTMLÚDivÚFieldÚFieldsetÚLayoutÚSubmitÚuni_formÚ	bootstrapÚ
bootstrap3Ú
bootstrap4c            
   C   sX   t  t t t d ƒ ƒ t t d ƒ ƒ t d d ƒ t d d t d ƒ ƒ t  d ƒ ƒ d ƒ S)	NÚemailZ	password1ÚsaveZlegendZ
first_namez
extra textZ	password2Z	last_name)r   r   r   r   r   r   © r   r   úN/var/www/dbchiro/venv/build/django-crispy-forms/crispy_forms/tests/conftest.pyÚadvanced_layout   s    	r   ZautouseTÚparamsc             C   s&   t  |  j j |  j ƒ |  j | _ d  S)N)Úcheck_template_packZ_pyfuncitemÚ_objÚparamZCRISPY_TEMPLATE_PACK)ÚrequestZsettingsr   r   r   Útemplate_packs    s    r   c             C   sN   t  |  d ƒ rJ |  j } | | j k rJ t j d d j | j ƒ ƒ qJ n  d  S)NÚonlyzRequires %s template packz or )Úhasattrr   ÚargsÚpytestÚskipÚjoin)ÚfunctionZtemplate_packÚmarkr   r   r   r   '   s    	r   )r   z	bootstrapr
   r   )r   Zcrispy_forms.layoutr   r   r   r   r   r   r   r   Zonly_uni_formZonly_bootstrapZonly_bootstrap3Zonly_bootstrap4Zfixturer   r   r   r   r   r   r   Ú<module>   s   .