o
    _~#g	                     @   sF   d Z ddlZddlmZmZ ddlmZmZm	Z	m
Z
 G dd dZdS )z5
Tests for subclasses of NDArrayBackedExtensionArray
    N)CategoricalIndex
date_range)CategoricalDatetimeArrayNumpyExtensionArrayTimedeltaArrayc                   @   s4   e Zd Zdd Zdd Zdd Zdd Zd	d
 ZdS )	TestEmptyc                 C   s   t g ddd}|j}d}tj||d}t|tsJ |j|ks"J |jjtjks+J tjd|d}t|ts9J |jdks@J |jjtjksIJ t	| t t
tdd d	d}|j}tj||d}t|tsjJ |j|ksqJ |jjtjkszJ d S )
N)abcT)ordered)   dtype)i   i   r   F)r   r   r   _empty
isinstanceshape_ndarraynpint8reprlistrangeint16)selfcir   r   result r   /var/www/static.ux5.de/https/Moving-Object-Detection-with-OpenCV/env/lib/python3.10/site-packages/pandas/tests/arrays/test_ndarray_backed.pytest_empty_categorical   s$   z TestEmpty.test_empty_categoricalc                 C   sT   t dddd}|j}d}tj||d}|j|ksJ t|ts!J |j|ks(J d S )Nz
2016-01-01   z
Asia/Tokyo)periodstz)r   r   )r   r   r   r   r   r   )r   dtir   r   r   r   r   r   test_empty_dt64tz-   s   zTestEmpty.test_empty_dt64tzc                 C   2   d}t j|dd}t|t sJ |j|ksJ d S )N   	   zdatetime64[ns]r   )r   r   r   r   r   r   r   r   r   r   test_empty_dt647      zTestEmpty.test_empty_dt64c                 C   r%   )Nr&   zm8[ns]r   )r   r   r   r   r)   r   r   r   test_empty_td64=   r+   zTestEmpty.test_empty_td64c                 C   sX   t tddg}|j}d}t j||d}t|t sJ |j|ks#J |j|ks*J d S )N   r    r&   r   )r   r   arrayr   r   r   r   )r   arrr   r   r   r   r   r   test_empty_pandas_arrayC   s   z!TestEmpty.test_empty_pandas_arrayN)__name__
__module____qualname__r   r$   r*   r,   r0   r   r   r   r   r      s    
r   )__doc__numpyr   pandasr   r   pandas.core.arraysr   r   r   r   r   r   r   r   r   <module>   s
    