
­­­­­­­­­­­­­­­­­­
<!DOCTYPE html>
<html>
U
    5`	                     @   s  d dl mZ d dlZd dlmZ ejdd Zejdd Zejdd	 Zd
ddddddddddddddddd dgdddddddiddddddddddd id
d!gdd
id"d
d#d$d
dd%d
d&d'd(gdd!d&d'd(gdd!e	d&d'd(gdd!d)dd
iddd*d+d"d"d!dd
iddigd,d!ddid"d)dd
id
dd*d-d"d)ddid.d!ddidd/d0d1dii d2Z
d3d4iZdS )5    )deepcopyN)	Validatorc                   C   s   t tS N)r   sample_document r   r   H/opt/alt/python38/lib/python3.8/site-packages/cerberus/tests/conftest.pydocument
   s    r   c                   C   s   t tS r   )r   sample_schemar   r   r   r   schema   s    r
   c                   C   s   t tS r   )r   r	   r   r   r   r   	validator   s    r   string   
   )type	minlength	maxlengthbinaryintegerT)r   nullable   d   )r   minmax)r   allowedZbooleanzcan haz two distinct states)r   metadatetimeformatz%a, %d. %b %Yfloatnumberr   setlist)r   r
   z0^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$)r   Zregex)r   readonlyZagentZclientvendordict)r   required)ZskuZprice)r   items)addressZcity)r   Zvaluesrules   )r   r
   r   r   r   )Za_stringZa_binaryZa_nullable_integerZ
an_integerZa_restricted_integerZ	a_booleanZ
a_datetimeZa_floatZa_numberZa_setZone_or_more_stringsZa_regex_emailZa_readonly_stringZa_restricted_stringZan_arrayZan_array_from_setZa_list_of_dictsZa_list_of_valuesZa_list_of_integersZa_dictZa_dict_with_valuesrulesZa_list_lengthZa_nullable_field_without_typeZ!a_not_nullable_field_without_typenamezjohn doe)copyr   pytestZcerberusr   Zfixturer   r
   r   r    r	   r   r   r   r   r   <module>   sl   







8