
    CdX                    @    d dl mZ d dlZd dlZd Zd Zd Zd Zd ZdS )    )annotationsNc                     t          j        d           t          j                                        } |                     d          sJ |                     d          |                     d          k    sJ d S )Nmimesis      pytestimportorskipdaskdatasetsmake_peopletakebs    8lib/python3.11/site-packages/dask/tests/test_datasets.pytest_mimesisr      sg    
	"""!!##A66!9966!99q		!!!!!!    c                     t          j        d           t          j                            dd          } |                                                                 dk    sJ d S )Nr      
   )npartitionsrecords_per_partition   )r	   r
   r   r   r   countcomputer   s    r   test_full_datasetr      sX    
	"""!!ar!JJA7799"$$$$$$r   c                     t          j        d           t          j                            d          } 	 |                     d           d S # t          $ r t          j        d           Y d S w xY w)Nr   r   )r   	processes)	schedulerz-Failed to execute make_people using processes)r	   r
   r   r   r   r   	TypeErrorfailr   s    r    test_make_dataset_with_processesr"      s    
	"""!!a!00AE			K	((((( E E ECDDDDDDEs   A A0/A0c                     	 dd l } d S # t          $ rk t          j        t                    5 }t
          j                                         d d d            n# 1 swxY w Y   dt          |j	                  v sJ Y d S w xY w)Nr   zpython -m pip install mimesis)
r   ImportErrorr	   raises	Exceptionr   r   r   strvalue)r   infos     r   test_no_mimesisr*       s    B B B B]9%% 	(M%%'''	( 	( 	( 	( 	( 	( 	( 	( 	( 	( 	( 	( 	( 	( 	( /#dj//AAAAAAA	Bs2    #A=A
A=A	A=A	A=<A=c                 :   t          j        d           t          j                            d          } t          j                            d          }|                     d          d         d         |                    d          d         d         k    sJ d S )Nr   {   )seed   r   namer   )ar   s     r   test_deterministicr1   *   s    
	"""!!s!++A!!s!++A66!99Q<166!99Q<#7777777r   )	
__future__r   r	   r   r   r   r"   r*   r1    r   r   <module>r4      s    " " " " " "  " " "% % %E E EB B B8 8 8 8 8r   