From 3f03cb89311db38a1c7b8b48206289ed66d116bb Mon Sep 17 00:00:00 2001 From: jbrockmendel Date: Thu, 19 Dec 2019 13:34:50 -0800 Subject: [PATCH] REF: directory for method-specific series/frame tests --- pandas/tests/frame/methods/__init__.py | 7 +++++++ pandas/tests/frame/{ => methods}/test_asof.py | 0 pandas/tests/frame/{ => methods}/test_explode.py | 0 pandas/tests/frame/{ => methods}/test_quantile.py | 0 pandas/tests/frame/{ => methods}/test_rank.py | 0 pandas/tests/frame/{ => methods}/test_replace.py | 0 pandas/tests/series/methods/__init__.py | 7 +++++++ pandas/tests/series/{ => methods}/test_asof.py | 0 pandas/tests/series/{ => methods}/test_explode.py | 0 pandas/tests/series/{ => methods}/test_quantile.py | 0 pandas/tests/series/{ => methods}/test_rank.py | 0 pandas/tests/series/{ => methods}/test_replace.py | 0 12 files changed, 14 insertions(+) create mode 100644 pandas/tests/frame/methods/__init__.py rename pandas/tests/frame/{ => methods}/test_asof.py (100%) rename pandas/tests/frame/{ => methods}/test_explode.py (100%) rename pandas/tests/frame/{ => methods}/test_quantile.py (100%) rename pandas/tests/frame/{ => methods}/test_rank.py (100%) rename pandas/tests/frame/{ => methods}/test_replace.py (100%) create mode 100644 pandas/tests/series/methods/__init__.py rename pandas/tests/series/{ => methods}/test_asof.py (100%) rename pandas/tests/series/{ => methods}/test_explode.py (100%) rename pandas/tests/series/{ => methods}/test_quantile.py (100%) rename pandas/tests/series/{ => methods}/test_rank.py (100%) rename pandas/tests/series/{ => methods}/test_replace.py (100%) diff --git a/pandas/tests/frame/methods/__init__.py b/pandas/tests/frame/methods/__init__.py new file mode 100644 index 0000000000000..245594bfdc9e7 --- /dev/null +++ b/pandas/tests/frame/methods/__init__.py @@ -0,0 +1,7 @@ +""" +Test files dedicated to individual (stand-alone) DataFrame methods + +Ideally these files/tests should correspond 1-to-1 with tests.series.methods + +These may also present opportunities for sharing/de-duplicating test code. +""" diff --git a/pandas/tests/frame/test_asof.py b/pandas/tests/frame/methods/test_asof.py similarity index 100% rename from pandas/tests/frame/test_asof.py rename to pandas/tests/frame/methods/test_asof.py diff --git a/pandas/tests/frame/test_explode.py b/pandas/tests/frame/methods/test_explode.py similarity index 100% rename from pandas/tests/frame/test_explode.py rename to pandas/tests/frame/methods/test_explode.py diff --git a/pandas/tests/frame/test_quantile.py b/pandas/tests/frame/methods/test_quantile.py similarity index 100% rename from pandas/tests/frame/test_quantile.py rename to pandas/tests/frame/methods/test_quantile.py diff --git a/pandas/tests/frame/test_rank.py b/pandas/tests/frame/methods/test_rank.py similarity index 100% rename from pandas/tests/frame/test_rank.py rename to pandas/tests/frame/methods/test_rank.py diff --git a/pandas/tests/frame/test_replace.py b/pandas/tests/frame/methods/test_replace.py similarity index 100% rename from pandas/tests/frame/test_replace.py rename to pandas/tests/frame/methods/test_replace.py diff --git a/pandas/tests/series/methods/__init__.py b/pandas/tests/series/methods/__init__.py new file mode 100644 index 0000000000000..bcb0d30f405e2 --- /dev/null +++ b/pandas/tests/series/methods/__init__.py @@ -0,0 +1,7 @@ +""" +Test files dedicated to individual (stand-alone) Series methods + +Ideally these files/tests should correspond 1-to-1 with tests.frame.methods + +These may also present opportunities for sharing/de-duplicating test code. +""" diff --git a/pandas/tests/series/test_asof.py b/pandas/tests/series/methods/test_asof.py similarity index 100% rename from pandas/tests/series/test_asof.py rename to pandas/tests/series/methods/test_asof.py diff --git a/pandas/tests/series/test_explode.py b/pandas/tests/series/methods/test_explode.py similarity index 100% rename from pandas/tests/series/test_explode.py rename to pandas/tests/series/methods/test_explode.py diff --git a/pandas/tests/series/test_quantile.py b/pandas/tests/series/methods/test_quantile.py similarity index 100% rename from pandas/tests/series/test_quantile.py rename to pandas/tests/series/methods/test_quantile.py diff --git a/pandas/tests/series/test_rank.py b/pandas/tests/series/methods/test_rank.py similarity index 100% rename from pandas/tests/series/test_rank.py rename to pandas/tests/series/methods/test_rank.py diff --git a/pandas/tests/series/test_replace.py b/pandas/tests/series/methods/test_replace.py similarity index 100% rename from pandas/tests/series/test_replace.py rename to pandas/tests/series/methods/test_replace.py