o
    ŀgF                     @   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endMSr   r
   )r   r   tmassert_index_equal
start_timeselfindexexpected_index r   b/var/www/html/myenv/lib/python3.10/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	   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
   periodsr   )daysnanoseconds)r   r   r   
_with_freqr   r   r   )r   piresult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-   pandasr   r   r   pandas._testing_testingr   r   r   r   r   r   <module>   s
    