o
    _~#g                     @   s   d dl Z d dlmZmZ e jdd Zdd Ze jde	dd	d
d Z
dd Ze jdddge jdddg ddgdd Ze jdddge jdg ddd ZdS )    N)validate_bool_kwargvalidate_kwargsc                   C   s   dS )Nfunc r   r   r   /var/www/static.ux5.de/https/Moving-Object-Detection-with-OpenCV/env/lib/python3.10/site-packages/pandas/tests/util/test_validate_kwargs.py_fname	   s   r   c                 C   sx   d}|d }|d|d di}|d|di}|  d| d}t jt|d t| || W d    d S 1 s5w   Y  d S )Nfofoobarz)\(\) got an unexpected keyword argument ''match)pytestraises	TypeErrorr   )r   good_argbad_argcompat_argskwargsmsgr   r   r   test_bad_kwarg   s   "r   i      c                 C   s   d}d| d| d}ddd d}d}d}t t|d |  |d |  }tjt|d	 t||| W d    d S 1 s=w   Y  d S )
Nr
   zthe 'z=' parameter is not supported in the pandas implementation of z\(\)r   s)r
   r   baz)   r   Nr   )dictzipr   r   
ValueErrorr   )r   r   r   r   r   
kwarg_keys
kwarg_valsr   r   r   r   test_not_all_none   s   "r#   c                 C   s&   d ddd}d dd}t | || d S )Nr   r   )r   bba)r   r$   )r   )r   r   r   r   r   r   test_validation.   s   
r&   nameinplacecopyvalueTrue)r   r   r   g      @c                 C   sT   d|  dt |j }tjt|d t||  W d    d S 1 s#w   Y  d S )NzFor argument "z$" expected type bool, received type r   )type__name__r   r   r    r   )r'   r*   r   r   r   r   test_validate_bool_kwarg_fail6   s   "r.   )TFNc                 C   s   t || |ks	J d S )N)r   )r'   r*   r   r   r   test_validate_bool_kwargB   s   r/   )r   pandas.util._validatorsr   r   fixturer   r   markparametrizeranger#   r&   r.   r/   r   r   r   r   <module>   s    


