o
    _~#g                     @   sB   d dl Z d dlmZmZmZmZmZ d dlmZ	 G dd dZ
dS )    N)	TimedeltaTimedeltaIndex	Timestamp
date_rangetimedelta_rangec                   @   s2   e Zd Zdd Zdd Zejjdddd Zd	S )
TestDatetimeIndexArithmeticc                 C   sD   d}t td|dtd|ddd}|tdd }|j|jks J d S )	NzCanada/Easternz2019-03-26 00:00:00-0400tzz2020-10-17 00:00:00-0400D)startendfreq   days)r   r   r   r   )selfr	   dtiresult r   /var/www/static.ux5.de/https/Moving-Object-Detection-with-OpenCV/env/lib/python3.10/site-packages/pandas/tests/indexes/datetimes/test_arithmetic.py!test_add_timedelta_preserves_freq   s   

z=TestDatetimeIndexArithmetic.test_add_timedelta_preserves_freqc                 C   sD   t dd|d}||d  }tdd}t|| |j|jks J d S )Nz
2016-01-01   )periodsr	   r   z0 Daysz11 Days)r   r   tmassert_index_equalr   )r   tz_naive_fixturer   resexpectedr   r   r    test_sub_datetime_preserves_freq   s
   
z<TestDatetimeIndexArithmetic.test_sub_datetime_preserves_freqzyThe inherited freq is incorrect bc dti.freq is incorrect https://github.com/pandas-dev/pandas/pull/48818/files#r982793461)reasonc                 C   sn   t ddd}t|dd}||d  }ttddtddtd	dtd	d
dg}t|| |j|jks5J d S )Nz
2016-03-11z
US/Pacificr      )r   r   r   r         )r   hours)r   r   r   r   r   r   r   )r   tsr   r   r   r   r   r   +test_sub_datetime_preserves_freq_across_dst%   s   
zGTestDatetimeIndexArithmetic.test_sub_datetime_preserves_freq_across_dstN)	__name__
__module____qualname__r   r   pytestmarkxfailr%   r   r   r   r   r      s    	r   )r)   pandasr   r   r   r   r   pandas._testing_testingr   r   r   r   r   r   <module>   s   