From 788fd4b3d2f9642b6cdaa7ec6c5754cf824b9791 Mon Sep 17 00:00:00 2001 From: Ilya Shakhat Date: Tue, 18 Aug 2015 15:38:17 +0300 Subject: [PATCH] Move tests under stackalytics package Change-Id: I8475c31bb6120e8b07381217e232c861a8407053 --- .testr.conf | 2 +- {tests => stackalytics/tests}/__init__.py | 0 {tests => stackalytics/tests}/api/__init__.py | 0 {tests => stackalytics/tests}/api/test_api.py | 0 {tests => stackalytics/tests}/api/test_companies.py | 2 +- {tests => stackalytics/tests}/api/test_modules.py | 2 +- {tests => stackalytics/tests}/api/test_releases.py | 2 +- {tests => stackalytics/tests}/api/test_stats.py | 2 +- {tests => stackalytics/tests}/api/test_users.py | 2 +- {tests => stackalytics/tests}/unit/__init__.py | 0 {tests => stackalytics/tests}/unit/test_bps.py | 0 {tests => stackalytics/tests}/unit/test_config_files.py | 0 {tests => stackalytics/tests}/unit/test_data.py | 0 .../tests}/unit/test_default_data_processor.py | 2 +- {tests => stackalytics/tests}/unit/test_driverlog.py | 0 {tests => stackalytics/tests}/unit/test_dump.py | 0 {tests => stackalytics/tests}/unit/test_governance.py | 0 {tests => stackalytics/tests}/unit/test_mls.py | 0 {tests => stackalytics/tests}/unit/test_mps.py | 0 {tests => stackalytics/tests}/unit/test_record_processor.py | 0 {tests => stackalytics/tests}/unit/test_user_processor.py | 0 {tests => stackalytics/tests}/unit/test_utils.py | 0 {tests => stackalytics/tests}/unit/test_vcs.py | 0 {tests => stackalytics/tests}/unit/test_web_utils.py | 0 24 files changed, 7 insertions(+), 7 deletions(-) rename {tests => stackalytics/tests}/__init__.py (100%) rename {tests => stackalytics/tests}/api/__init__.py (100%) rename {tests => stackalytics/tests}/api/test_api.py (100%) rename {tests => stackalytics/tests}/api/test_companies.py (99%) rename {tests => stackalytics/tests}/api/test_modules.py (99%) rename {tests => stackalytics/tests}/api/test_releases.py (97%) rename {tests => stackalytics/tests}/api/test_stats.py (99%) rename {tests => stackalytics/tests}/api/test_users.py (98%) rename {tests => stackalytics/tests}/unit/__init__.py (100%) rename {tests => stackalytics/tests}/unit/test_bps.py (100%) rename {tests => stackalytics/tests}/unit/test_config_files.py (100%) rename {tests => stackalytics/tests}/unit/test_data.py (100%) rename {tests => stackalytics/tests}/unit/test_default_data_processor.py (98%) rename {tests => stackalytics/tests}/unit/test_driverlog.py (100%) rename {tests => stackalytics/tests}/unit/test_dump.py (100%) rename {tests => stackalytics/tests}/unit/test_governance.py (100%) rename {tests => stackalytics/tests}/unit/test_mls.py (100%) rename {tests => stackalytics/tests}/unit/test_mps.py (100%) rename {tests => stackalytics/tests}/unit/test_record_processor.py (100%) rename {tests => stackalytics/tests}/unit/test_user_processor.py (100%) rename {tests => stackalytics/tests}/unit/test_utils.py (100%) rename {tests => stackalytics/tests}/unit/test_vcs.py (100%) rename {tests => stackalytics/tests}/unit/test_web_utils.py (100%) diff --git a/.testr.conf b/.testr.conf index 2109af6ce..6f96a86e9 100644 --- a/.testr.conf +++ b/.testr.conf @@ -1,4 +1,4 @@ [DEFAULT] -test_command=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 ${PYTHON:-python} -m subunit.run discover -t ./ ./tests $LISTOPT $IDOPTION +test_command=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 ${PYTHON:-python} -m subunit.run discover -t ./ ./stackalytics/tests $LISTOPT $IDOPTION test_id_option=--load-list $IDFILE test_list_option=--list diff --git a/tests/__init__.py b/stackalytics/tests/__init__.py similarity index 100% rename from tests/__init__.py rename to stackalytics/tests/__init__.py diff --git a/tests/api/__init__.py b/stackalytics/tests/api/__init__.py similarity index 100% rename from tests/api/__init__.py rename to stackalytics/tests/api/__init__.py diff --git a/tests/api/test_api.py b/stackalytics/tests/api/test_api.py similarity index 100% rename from tests/api/test_api.py rename to stackalytics/tests/api/test_api.py diff --git a/tests/api/test_companies.py b/stackalytics/tests/api/test_companies.py similarity index 99% rename from tests/api/test_companies.py rename to stackalytics/tests/api/test_companies.py index 648de428c..6a0579786 100644 --- a/tests/api/test_companies.py +++ b/stackalytics/tests/api/test_companies.py @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -from tests.api import test_api +from stackalytics.tests.api import test_api class TestAPICompanies(test_api.TestAPI): diff --git a/tests/api/test_modules.py b/stackalytics/tests/api/test_modules.py similarity index 99% rename from tests/api/test_modules.py rename to stackalytics/tests/api/test_modules.py index 1f1d7b8e8..cae9183b9 100644 --- a/tests/api/test_modules.py +++ b/stackalytics/tests/api/test_modules.py @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -from tests.api import test_api +from stackalytics.tests.api import test_api class TestAPIModules(test_api.TestAPI): diff --git a/tests/api/test_releases.py b/stackalytics/tests/api/test_releases.py similarity index 97% rename from tests/api/test_releases.py rename to stackalytics/tests/api/test_releases.py index 9b31d5774..72374411f 100644 --- a/tests/api/test_releases.py +++ b/stackalytics/tests/api/test_releases.py @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -from tests.api import test_api +from stackalytics.tests.api import test_api class TestAPIReleases(test_api.TestAPI): diff --git a/tests/api/test_stats.py b/stackalytics/tests/api/test_stats.py similarity index 99% rename from tests/api/test_stats.py rename to stackalytics/tests/api/test_stats.py index ff5efb7a6..9be761662 100644 --- a/tests/api/test_stats.py +++ b/stackalytics/tests/api/test_stats.py @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -from tests.api import test_api +from stackalytics.tests.api import test_api class TestAPIStats(test_api.TestAPI): diff --git a/tests/api/test_users.py b/stackalytics/tests/api/test_users.py similarity index 98% rename from tests/api/test_users.py rename to stackalytics/tests/api/test_users.py index 55522a57f..b14121c7e 100644 --- a/tests/api/test_users.py +++ b/stackalytics/tests/api/test_users.py @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -from tests.api import test_api +from stackalytics.tests.api import test_api class TestAPIUsers(test_api.TestAPI): diff --git a/tests/unit/__init__.py b/stackalytics/tests/unit/__init__.py similarity index 100% rename from tests/unit/__init__.py rename to stackalytics/tests/unit/__init__.py diff --git a/tests/unit/test_bps.py b/stackalytics/tests/unit/test_bps.py similarity index 100% rename from tests/unit/test_bps.py rename to stackalytics/tests/unit/test_bps.py diff --git a/tests/unit/test_config_files.py b/stackalytics/tests/unit/test_config_files.py similarity index 100% rename from tests/unit/test_config_files.py rename to stackalytics/tests/unit/test_config_files.py diff --git a/tests/unit/test_data.py b/stackalytics/tests/unit/test_data.py similarity index 100% rename from tests/unit/test_data.py rename to stackalytics/tests/unit/test_data.py diff --git a/tests/unit/test_default_data_processor.py b/stackalytics/tests/unit/test_default_data_processor.py similarity index 98% rename from tests/unit/test_default_data_processor.py rename to stackalytics/tests/unit/test_default_data_processor.py index 4c4a0e371..d2c62994a 100644 --- a/tests/unit/test_default_data_processor.py +++ b/stackalytics/tests/unit/test_default_data_processor.py @@ -20,7 +20,7 @@ import testtools from stackalytics.processor import default_data_processor from stackalytics.processor import normalizer -from tests.unit import test_data +from stackalytics.tests.unit import test_data class TestDefaultDataProcessor(testtools.TestCase): diff --git a/tests/unit/test_driverlog.py b/stackalytics/tests/unit/test_driverlog.py similarity index 100% rename from tests/unit/test_driverlog.py rename to stackalytics/tests/unit/test_driverlog.py diff --git a/tests/unit/test_dump.py b/stackalytics/tests/unit/test_dump.py similarity index 100% rename from tests/unit/test_dump.py rename to stackalytics/tests/unit/test_dump.py diff --git a/tests/unit/test_governance.py b/stackalytics/tests/unit/test_governance.py similarity index 100% rename from tests/unit/test_governance.py rename to stackalytics/tests/unit/test_governance.py diff --git a/tests/unit/test_mls.py b/stackalytics/tests/unit/test_mls.py similarity index 100% rename from tests/unit/test_mls.py rename to stackalytics/tests/unit/test_mls.py diff --git a/tests/unit/test_mps.py b/stackalytics/tests/unit/test_mps.py similarity index 100% rename from tests/unit/test_mps.py rename to stackalytics/tests/unit/test_mps.py diff --git a/tests/unit/test_record_processor.py b/stackalytics/tests/unit/test_record_processor.py similarity index 100% rename from tests/unit/test_record_processor.py rename to stackalytics/tests/unit/test_record_processor.py diff --git a/tests/unit/test_user_processor.py b/stackalytics/tests/unit/test_user_processor.py similarity index 100% rename from tests/unit/test_user_processor.py rename to stackalytics/tests/unit/test_user_processor.py diff --git a/tests/unit/test_utils.py b/stackalytics/tests/unit/test_utils.py similarity index 100% rename from tests/unit/test_utils.py rename to stackalytics/tests/unit/test_utils.py diff --git a/tests/unit/test_vcs.py b/stackalytics/tests/unit/test_vcs.py similarity index 100% rename from tests/unit/test_vcs.py rename to stackalytics/tests/unit/test_vcs.py diff --git a/tests/unit/test_web_utils.py b/stackalytics/tests/unit/test_web_utils.py similarity index 100% rename from tests/unit/test_web_utils.py rename to stackalytics/tests/unit/test_web_utils.py