a
    PfF                     @   s>   d Z ddlZddlmZmZmZ ddlmZ G dd dZ	dS )z>Tests for PeriodIndex behaving like a vectorized Period scalar    N)	Timedelta
date_rangeperiod_rangec                   @   s<   e Zd Zdd Zdd Zejdejddd Zd	S )
TestPeriodIndexOpsc                 C   s.   t dddd}tdddd}t|j| d S )NM
2016-01-01
2016-05-31freqstartendZMSr   r
   )r   r   tmassert_index_equal
start_timeselfindexZexpected_index r   g/var/www/ai-form-bot/venv/lib/python3.9/site-packages/pandas/tests/indexes/period/test_scalar_compat.pytest_start_time   s    z"TestPeriodIndexOps.test_start_timec                 C   sF   t dddd}tdddd}|tddtdd	 7 }t|j| d S )
Nr   r   r   r	   ZMEr      Dns)r   r   r   r   r   end_timer   r   r   r   test_end_time   s    z TestPeriodIndexOps.test_end_timez3ignore:PeriodDtype\[B\] is deprecated:FutureWarningz8ignore:Period with BDay freq is deprecated:FutureWarningc                 C   sH   t dddd}|j}tddddd }|tddd }t|| d S )Nz
1990-01-05Br   )r
   Zperiodsr   )daysnanoseconds)r   r   r   Z
_with_freqr   r   r   )r   piresultZdtiexpectedr   r   r   test_end_time_business_friday   s
    z0TestPeriodIndexOps.test_end_time_business_fridayN)	__name__
__module____qualname__r   r   pytestmarkfilterwarningsr#   r   r   r   r   r      s   
r   )
__doc__r'   Zpandasr   r   r   Zpandas._testingZ_testingr   r   r   r   r   r   <module>   s   