
    Owg                     *   d Z ddlmZ ddlmZ ddlmZ ddlmZm	Z	 ddl
mZ ddlmZ ddlmZ dd	lmZ dd
lmZ ddlmZ ddlmZ ddlmZ ddlmZmZmZmZ ddlm Z  ddl!m"Z" ddl#m$Z$ ddl%m&Z&  G d deeeeeeeeeeeeeee e"e$e&e      Z'de(fdZ)y)a  
Base test suite for extension arrays.

These tests are intended for third-party libraries to subclass to validate
that their extension arrays and dtypes satisfy the interface. Moving or
renaming the tests should not be done lightly.

Libraries are expected to implement a few pytest fixtures to provide data
for the tests. The fixtures may be located in either

* The same module as your test class.
* A ``conftest.py`` in the same directory as your test class.

The full list of fixtures may be found in the ``conftest.py`` next to this
file.

.. code-block:: python

   import pytest
   from pandas.tests.extension.base import BaseDtypeTests


   @pytest.fixture
   def dtype():
       return MyDtype()


   class TestMyDtype(BaseDtypeTests):
       pass


Your class ``TestDtype`` will inherit all the tests defined on
``BaseDtypeTests``. pytest's fixture discover will supply your ``dtype``
wherever the test requires it. You're free to implement additional tests.

    )BaseAccumulateTests)BaseCastingTests)BaseConstructorsTests)Dim2CompatTestsNDArrayBacked2DTests)BaseDtypeTests)BaseGetitemTests)BaseGroupbyTests)BaseIndexTests)BaseInterfaceTests)BaseParsingTests)BaseMethodsTests)BaseMissingTests)BaseArithmeticOpsTestsBaseComparisonOpsTestsBaseOpsUtilBaseUnaryOpsTests)BasePrintingTests)BaseReduceTests)BaseReshapingTests)BaseSetitemTestsc                       e Zd Zy)ExtensionTestsN)__name__
__module____qualname__     [/var/www/horilla/myenv/lib/python3.12/site-packages/pandas/tests/extension/base/__init__.pyr   r   E   s    * 	r   r   namec                     dd l }| dk(  r|j                  dt               ddlm} |S | dk(  r|j                  dt               ddlm} |S | dk(  r|j                  d	t               dd
lm} |S t        d|  d      )Nr   BaseNoReduceTestszBaseNoReduceTests is deprecated and will be removed in a future version. Use BaseReduceTests and override `_supports_reduction` instead.)r"   BaseNumericReduceTestszBaseNumericReduceTests is deprecated and will be removed in a future version. Use BaseReduceTests and override `_supports_reduction` instead.)r#   BaseBooleanReduceTestszBaseBooleanReduceTests is deprecated and will be removed in a future version. Use BaseReduceTests and override `_supports_reduction` instead.)r$   z7module 'pandas.tests.extension.base' has no attribute '')warningswarnFutureWarning"pandas.tests.extension.base.reducer"   r#   r$   AttributeError)r    r&   r"   r#   r$   s        r   __getattr__r+   ]   s    ""- 		
 	I  	)	)- 		
 	N%%	)	)- 		
 	N%%

A$qI r   N)*__doc__&pandas.tests.extension.base.accumulater   #pandas.tests.extension.base.castingr   (pandas.tests.extension.base.constructorsr    pandas.tests.extension.base.dim2r   r   !pandas.tests.extension.base.dtyper   #pandas.tests.extension.base.getitemr	   #pandas.tests.extension.base.groupbyr
   !pandas.tests.extension.base.indexr   %pandas.tests.extension.base.interfacer   pandas.tests.extension.base.ior   #pandas.tests.extension.base.methodsr   #pandas.tests.extension.base.missingr   pandas.tests.extension.base.opsr   r   r   r   $pandas.tests.extension.base.printingr   r)   r   %pandas.tests.extension.base.reshapingr   #pandas.tests.extension.base.setitemr   r   strr+   r   r   r   <module>r>      s   #H G @ J = @ @ < D ; @ @  C > D @	'	0&c &r   