B
    ²ô`r  ã               @   sÄ   d 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 ddlmZmZmZmZ ddlmZ ddlmZmZmZ ddlmZ ddl m!Z! dS )aL  
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.

All the tests in these modules use ``self.assert_frame_equal`` or
``self.assert_series_equal`` for dataframe or series comparisons. By default,
they use the usual ``pandas.testing.assert_frame_equal`` and
``pandas.testing.assert_series_equal``. You can override the checks used
by defining the staticmethods ``assert_frame_equal`` and
``assert_series_equal`` on your base test class.

é   )ÚBaseCastingTests)ÚBaseConstructorsTests)ÚBaseDtypeTests)ÚBaseGetitemTests)ÚBaseGroupbyTests)ÚBaseInterfaceTests)ÚBaseParsingTests)ÚBaseMethodsTests)ÚBaseMissingTests)ÚBaseArithmeticOpsTestsÚBaseComparisonOpsTestsÚBaseOpsUtilÚBaseUnaryOpsTests)ÚBasePrintingTests)ÚBaseBooleanReduceTestsÚBaseNoReduceTestsÚBaseNumericReduceTests)ÚBaseReshapingTests)ÚBaseSetitemTestsN)"Ú__doc__Zcastingr   Úconstructorsr   Zdtyper   Úgetitemr   Úgroupbyr   Z	interfacer   Úior   Úmethodsr	   Úmissingr
   Úopsr   r   r   r   Zprintingr   Úreducer   r   r   Z	reshapingr   Úsetitemr   © r   r   úS/home/dcms/DCMS/lib/python3.7/site-packages/pandas/tests/extension/base/__init__.pyÚ<module>+   s   