From c287cf4cadcd6aabf3573499652947b60d084771 Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Wed, 6 Jan 2021 16:44:34 +0100 Subject: [PATCH 1/2] TST: add note about scope of base extension tests to all files --- pandas/tests/extension/test_datetime.py | 15 +++++++++++++++ pandas/tests/extension/test_numpy.py | 15 +++++++++++++++ pandas/tests/extension/test_period.py | 15 +++++++++++++++ pandas/tests/extension/test_sparse.py | 15 +++++++++++++++ 4 files changed, 60 insertions(+) diff --git a/pandas/tests/extension/test_datetime.py b/pandas/tests/extension/test_datetime.py index 0fde1e8a2fdb8..281bbc21e3106 100644 --- a/pandas/tests/extension/test_datetime.py +++ b/pandas/tests/extension/test_datetime.py @@ -1,3 +1,18 @@ +""" +This file contains a minimal set of tests for compliance with the extension +array interface test suite, and should contain no other tests. +The test suite for the full functionality of the array is located in +`pandas/tests/arrays/`. + +The tests in this file are inherited from the BaseExtensionTests, and only +minimal tweaks should be applied to get the tests passing (by overwriting a +parent method). + +Additional tests should either be added to one of the BaseExtensionTests +classes (if they are relevant for the extension interface for all dtypes), or +be added to the array-specific tests in `pandas/tests/arrays/`. + +""" import numpy as np import pytest diff --git a/pandas/tests/extension/test_numpy.py b/pandas/tests/extension/test_numpy.py index 29790d14f93cc..1f0181eec8830 100644 --- a/pandas/tests/extension/test_numpy.py +++ b/pandas/tests/extension/test_numpy.py @@ -1,3 +1,18 @@ +""" +This file contains a minimal set of tests for compliance with the extension +array interface test suite, and should contain no other tests. +The test suite for the full functionality of the array is located in +`pandas/tests/arrays/`. + +The tests in this file are inherited from the BaseExtensionTests, and only +minimal tweaks should be applied to get the tests passing (by overwriting a +parent method). + +Additional tests should either be added to one of the BaseExtensionTests +classes (if they are relevant for the extension interface for all dtypes), or +be added to the array-specific tests in `pandas/tests/arrays/`. + +""" import numpy as np import pytest diff --git a/pandas/tests/extension/test_period.py b/pandas/tests/extension/test_period.py index 817881e00fa99..30dd6193846a4 100644 --- a/pandas/tests/extension/test_period.py +++ b/pandas/tests/extension/test_period.py @@ -1,3 +1,18 @@ +""" +This file contains a minimal set of tests for compliance with the extension +array interface test suite, and should contain no other tests. +The test suite for the full functionality of the array is located in +`pandas/tests/arrays/`. + +The tests in this file are inherited from the BaseExtensionTests, and only +minimal tweaks should be applied to get the tests passing (by overwriting a +parent method). + +Additional tests should either be added to one of the BaseExtensionTests +classes (if they are relevant for the extension interface for all dtypes), or +be added to the array-specific tests in `pandas/tests/arrays/`. + +""" import numpy as np import pytest diff --git a/pandas/tests/extension/test_sparse.py b/pandas/tests/extension/test_sparse.py index ffd56b9c23bc8..86f9080571459 100644 --- a/pandas/tests/extension/test_sparse.py +++ b/pandas/tests/extension/test_sparse.py @@ -1,3 +1,18 @@ +""" +This file contains a minimal set of tests for compliance with the extension +array interface test suite, and should contain no other tests. +The test suite for the full functionality of the array is located in +`pandas/tests/arrays/`. + +The tests in this file are inherited from the BaseExtensionTests, and only +minimal tweaks should be applied to get the tests passing (by overwriting a +parent method). + +Additional tests should either be added to one of the BaseExtensionTests +classes (if they are relevant for the extension interface for all dtypes), or +be added to the array-specific tests in `pandas/tests/arrays/`. + +""" import numpy as np import pytest From 054873a0c4acffa2733412294b44cb65c1964985 Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Wed, 6 Jan 2021 17:04:16 +0100 Subject: [PATCH 2/2] forgot one --- pandas/tests/extension/test_string.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pandas/tests/extension/test_string.py b/pandas/tests/extension/test_string.py index d49c4c5cf4889..d0a3ef17afdbc 100644 --- a/pandas/tests/extension/test_string.py +++ b/pandas/tests/extension/test_string.py @@ -1,3 +1,18 @@ +""" +This file contains a minimal set of tests for compliance with the extension +array interface test suite, and should contain no other tests. +The test suite for the full functionality of the array is located in +`pandas/tests/arrays/`. + +The tests in this file are inherited from the BaseExtensionTests, and only +minimal tweaks should be applied to get the tests passing (by overwriting a +parent method). + +Additional tests should either be added to one of the BaseExtensionTests +classes (if they are relevant for the extension interface for all dtypes), or +be added to the array-specific tests in `pandas/tests/arrays/`. + +""" import string import numpy as np