o
    _~#gt                     @   s>   d dl Zd dlmZmZmZmZ d dlmZ	 G dd dZ
dS )    N)	DataFrameIndex	Timedeltatimedelta_rangec                   @   s,   e Zd Zdd Zdd Zdd Zdd Zd	S )
TestJoinc                 C   sF   t ddd}tg d}||}t|d tsJ |j|dd d S )Nz1 days
   periods)abcdr   outerhow)r   r   append
isinstancer   join)selfrngidxresult r   /var/www/static.ux5.de/https/Moving-Object-Detection-with-OpenCV/env/lib/python3.10/site-packages/pandas/tests/indexes/timedeltas/test_join.py!test_append_join_nondatetimeindex   s
   
z*TestJoin.test_append_join_nondatetimeindexc                 C   s*   t ddd}|j||d}t|| d S )N1 dayr   r   r   )r   r   tmassert_index_equal)r   	join_typeindexjoinedr   r   r   test_join_self   s   zTestJoin.test_join_selfc                 C   sl   t tdtdddd}|jj|jdd}||j}|jtdks&J |j|jks.J t	|| d S )	N)   r"   r   r"   r   )columnsr   r   O)
r   nponesr   r#   r   r   dtyper   r   )r   dfcolsr    r   r   r   #test_does_not_convert_mixed_integer   s   z,TestJoin.test_does_not_convert_mixed_integerc                 C   s   t ddd}|d d j|dd  dd}|j|jksJ t|| |d d j|dd  dd}|jd u s9J |d}t|| d S )Nr   r   r   r"   r   r      )r   r   freqr   r   delete)r   tdir   expectedr   r   r   test_join_preserves_freq%   s   
z!TestJoin.test_join_preserves_freqN)__name__
__module____qualname__r   r!   r*   r0   r   r   r   r   r      s
    
	r   )numpyr%   pandasr   r   r   r   pandas._testing_testingr   r   r   r   r   r   <module>   s    