From 95aefc7383204df2ba3eb5b77b48f04c9d77f062 Mon Sep 17 00:00:00 2001 From: Benjamin ABEL Date: Thu, 20 Nov 2014 22:37:21 +0100 Subject: [PATCH] Move tests to root directory Also the run_tests.py has been renamed runtests.py --- .travis.yml | 2 +- example/settings_test_runner.py | 2 +- run_tests.py => runtests.py | 2 +- {spirit/tests => tests}/__init__.py | 0 {spirit/tests => tests}/migrations/0001_initial.py | 0 {spirit/tests => tests}/migrations/__init__.py | 0 {spirit/tests => tests}/models/__init__.py | 0 {spirit/tests => tests}/models/auto_slug.py | 0 {spirit/tests => tests}/tests_admin.py | 0 {spirit/tests => tests}/tests_category.py | 0 {spirit/tests => tests}/tests_comment.py | 0 {spirit/tests => tests}/tests_comment_bookmark.py | 0 {spirit/tests => tests}/tests_comment_flag.py | 0 {spirit/tests => tests}/tests_comment_history.py | 0 {spirit/tests => tests}/tests_comment_like.py | 0 {spirit/tests => tests}/tests_gravatar.py | 0 {spirit/tests => tests}/tests_search.py | 0 {spirit/tests => tests}/tests_topic.py | 0 {spirit/tests => tests}/tests_topic_favorite.py | 0 {spirit/tests => tests}/tests_topic_notification.py | 0 {spirit/tests => tests}/tests_topic_poll.py | 0 {spirit/tests => tests}/tests_topic_private.py | 0 {spirit/tests => tests}/tests_topic_unread.py | 0 {spirit/tests => tests}/tests_user.py | 0 {spirit/tests => tests}/tests_utils.py | 0 {spirit/tests => tests}/tests_utils_models.py | 2 +- {spirit/tests => tests}/tests_utils_paginator.py | 0 {spirit/tests => tests}/tests_utils_ratelimit.py | 0 {spirit/tests => tests}/utils.py | 0 29 files changed, 4 insertions(+), 4 deletions(-) rename run_tests.py => runtests.py (91%) rename {spirit/tests => tests}/__init__.py (100%) rename {spirit/tests => tests}/migrations/0001_initial.py (100%) rename {spirit/tests => tests}/migrations/__init__.py (100%) rename {spirit/tests => tests}/models/__init__.py (100%) rename {spirit/tests => tests}/models/auto_slug.py (100%) rename {spirit/tests => tests}/tests_admin.py (100%) rename {spirit/tests => tests}/tests_category.py (100%) rename {spirit/tests => tests}/tests_comment.py (100%) rename {spirit/tests => tests}/tests_comment_bookmark.py (100%) rename {spirit/tests => tests}/tests_comment_flag.py (100%) rename {spirit/tests => tests}/tests_comment_history.py (100%) rename {spirit/tests => tests}/tests_comment_like.py (100%) rename {spirit/tests => tests}/tests_gravatar.py (100%) rename {spirit/tests => tests}/tests_search.py (100%) rename {spirit/tests => tests}/tests_topic.py (100%) rename {spirit/tests => tests}/tests_topic_favorite.py (100%) rename {spirit/tests => tests}/tests_topic_notification.py (100%) rename {spirit/tests => tests}/tests_topic_poll.py (100%) rename {spirit/tests => tests}/tests_topic_private.py (100%) rename {spirit/tests => tests}/tests_topic_unread.py (100%) rename {spirit/tests => tests}/tests_user.py (100%) rename {spirit/tests => tests}/tests_utils.py (100%) rename {spirit/tests => tests}/tests_utils_models.py (94%) rename {spirit/tests => tests}/tests_utils_paginator.py (100%) rename {spirit/tests => tests}/tests_utils_ratelimit.py (100%) rename {spirit/tests => tests}/utils.py (100%) diff --git a/.travis.yml b/.travis.yml index 648aee424..9532dce94 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,6 +11,6 @@ install: script: - pep8 --max-line-length=120 --exclude='migrations,tests' . - flake8 --select=F401 ./spirit - - coverage run --source=. run_tests.py test + - coverage run --source=. runtests.py test after_success: - coveralls diff --git a/example/settings_test_runner.py b/example/settings_test_runner.py index e27a14060..a764ce5d5 100644 --- a/example/settings_test_runner.py +++ b/example/settings_test_runner.py @@ -6,5 +6,5 @@ from .local_settings_sample_dev import * INSTALLED_APPS += ( - 'spirit.tests', + 'tests', ) diff --git a/run_tests.py b/runtests.py similarity index 91% rename from run_tests.py rename to runtests.py index b45192f93..25ff63ecb 100755 --- a/run_tests.py +++ b/runtests.py @@ -19,7 +19,7 @@ def log_warnings(): def run_tests(): test_runner = DiscoverRunner() - failures = test_runner.run_tests(["spirit", ]) + failures = test_runner.run_tests(["tests", ]) sys.exit(failures) diff --git a/spirit/tests/__init__.py b/tests/__init__.py similarity index 100% rename from spirit/tests/__init__.py rename to tests/__init__.py diff --git a/spirit/tests/migrations/0001_initial.py b/tests/migrations/0001_initial.py similarity index 100% rename from spirit/tests/migrations/0001_initial.py rename to tests/migrations/0001_initial.py diff --git a/spirit/tests/migrations/__init__.py b/tests/migrations/__init__.py similarity index 100% rename from spirit/tests/migrations/__init__.py rename to tests/migrations/__init__.py diff --git a/spirit/tests/models/__init__.py b/tests/models/__init__.py similarity index 100% rename from spirit/tests/models/__init__.py rename to tests/models/__init__.py diff --git a/spirit/tests/models/auto_slug.py b/tests/models/auto_slug.py similarity index 100% rename from spirit/tests/models/auto_slug.py rename to tests/models/auto_slug.py diff --git a/spirit/tests/tests_admin.py b/tests/tests_admin.py similarity index 100% rename from spirit/tests/tests_admin.py rename to tests/tests_admin.py diff --git a/spirit/tests/tests_category.py b/tests/tests_category.py similarity index 100% rename from spirit/tests/tests_category.py rename to tests/tests_category.py diff --git a/spirit/tests/tests_comment.py b/tests/tests_comment.py similarity index 100% rename from spirit/tests/tests_comment.py rename to tests/tests_comment.py diff --git a/spirit/tests/tests_comment_bookmark.py b/tests/tests_comment_bookmark.py similarity index 100% rename from spirit/tests/tests_comment_bookmark.py rename to tests/tests_comment_bookmark.py diff --git a/spirit/tests/tests_comment_flag.py b/tests/tests_comment_flag.py similarity index 100% rename from spirit/tests/tests_comment_flag.py rename to tests/tests_comment_flag.py diff --git a/spirit/tests/tests_comment_history.py b/tests/tests_comment_history.py similarity index 100% rename from spirit/tests/tests_comment_history.py rename to tests/tests_comment_history.py diff --git a/spirit/tests/tests_comment_like.py b/tests/tests_comment_like.py similarity index 100% rename from spirit/tests/tests_comment_like.py rename to tests/tests_comment_like.py diff --git a/spirit/tests/tests_gravatar.py b/tests/tests_gravatar.py similarity index 100% rename from spirit/tests/tests_gravatar.py rename to tests/tests_gravatar.py diff --git a/spirit/tests/tests_search.py b/tests/tests_search.py similarity index 100% rename from spirit/tests/tests_search.py rename to tests/tests_search.py diff --git a/spirit/tests/tests_topic.py b/tests/tests_topic.py similarity index 100% rename from spirit/tests/tests_topic.py rename to tests/tests_topic.py diff --git a/spirit/tests/tests_topic_favorite.py b/tests/tests_topic_favorite.py similarity index 100% rename from spirit/tests/tests_topic_favorite.py rename to tests/tests_topic_favorite.py diff --git a/spirit/tests/tests_topic_notification.py b/tests/tests_topic_notification.py similarity index 100% rename from spirit/tests/tests_topic_notification.py rename to tests/tests_topic_notification.py diff --git a/spirit/tests/tests_topic_poll.py b/tests/tests_topic_poll.py similarity index 100% rename from spirit/tests/tests_topic_poll.py rename to tests/tests_topic_poll.py diff --git a/spirit/tests/tests_topic_private.py b/tests/tests_topic_private.py similarity index 100% rename from spirit/tests/tests_topic_private.py rename to tests/tests_topic_private.py diff --git a/spirit/tests/tests_topic_unread.py b/tests/tests_topic_unread.py similarity index 100% rename from spirit/tests/tests_topic_unread.py rename to tests/tests_topic_unread.py diff --git a/spirit/tests/tests_user.py b/tests/tests_user.py similarity index 100% rename from spirit/tests/tests_user.py rename to tests/tests_user.py diff --git a/spirit/tests/tests_utils.py b/tests/tests_utils.py similarity index 100% rename from spirit/tests/tests_utils.py rename to tests/tests_utils.py diff --git a/spirit/tests/tests_utils_models.py b/tests/tests_utils_models.py similarity index 94% rename from spirit/tests/tests_utils_models.py rename to tests/tests_utils_models.py index 184e368dd..83b3ecf84 100644 --- a/spirit/tests/tests_utils_models.py +++ b/tests/tests_utils_models.py @@ -4,7 +4,7 @@ from django.test import TestCase -from spirit.tests.models.auto_slug import AutoSlugPopulateFromModel, AutoSlugModel, AutoSlugDefaultModel, \ +from .models.auto_slug import AutoSlugPopulateFromModel, AutoSlugModel, AutoSlugDefaultModel, \ AutoSlugBadPopulateFromModel diff --git a/spirit/tests/tests_utils_paginator.py b/tests/tests_utils_paginator.py similarity index 100% rename from spirit/tests/tests_utils_paginator.py rename to tests/tests_utils_paginator.py diff --git a/spirit/tests/tests_utils_ratelimit.py b/tests/tests_utils_ratelimit.py similarity index 100% rename from spirit/tests/tests_utils_ratelimit.py rename to tests/tests_utils_ratelimit.py diff --git a/spirit/tests/utils.py b/tests/utils.py similarity index 100% rename from spirit/tests/utils.py rename to tests/utils.py