o
    _~#g                     @   s2   d dl Z d dlmZ d dlmZ G dd dZdS )    N)DatetimeArrayc                   @   s.   e Zd Zdd Zejdddgdd ZdS )	TestAccumulatorc                 C   sn   t jg dddd}|d}t jdgd dd}t|| |d}t jg ddd}t|| d S )	N)
2000-01-01
2000-01-02z
2000-01-03M8[ns]dtypeinfercumminr      cummax)r   _from_sequence
_with_freq_accumulatetmassert_datetime_array_equal)selfarrresultexpected r   /var/www/static.ux5.de/https/Moving-Object-Detection-with-OpenCV/env/lib/python3.10/site-packages/pandas/tests/arrays/datetimes/test_cumulative.pytest_accumulators_freq   s   

z&TestAccumulator.test_accumulators_freqfunccumsumcumprodc                 C   s\   t jddgddd}tjtd| d || W d    d S 1 s'w   Y  d S )Nr   r   r   r   r	   zAccumulation )match)r   r   r   pytestraises	TypeErrorr   )r   r   r   r   r   r   test_accumulators_disallowed!   s   "z,TestAccumulator.test_accumulators_disallowedN)__name__
__module____qualname__r   r   markparametrizer    r   r   r   r   r      s    r   )r   pandas._testing_testingr   pandas.core.arraysr   r   r   r   r   r   <module>   s    