From df2fd4e09b1d51e5154e607babf232610a0ec0c4 Mon Sep 17 00:00:00 2001 From: Florian Apolloner Date: Mon, 9 Sep 2013 22:44:38 +0200 Subject: [PATCH] Removed unneeded imports in tests's __init__.py and unified them. --- tests/admin_custom_urls/__init__.py | 1 - tests/bash_completion/__init__.py | 1 - tests/bash_completion/management/__init__.py | 1 - .../management/commands/__init__.py | 1 - tests/comment_tests/tests/__init__.py | 8 -------- tests/conditional_processing/__init__.py | 1 - tests/delete_regress/__init__.py | 1 - tests/dispatch/__init__.py | 2 -- tests/dispatch/tests/__init__.py | 6 ------ tests/distinct_on_fields/__init__.py | 1 - tests/file_storage/__init__.py | 1 - tests/files/__init__.py | 1 - tests/fixtures/__init__.py | 2 -- tests/fixtures_model_package/__init__.py | 2 -- tests/forms_tests/tests/__init__.py | 19 ------------------- tests/inspectdb/__init__.py | 1 - tests/invalid_models/__init__.py | 1 - tests/m2m_signals/__init__.py | 1 - tests/m2m_through/__init__.py | 2 -- tests/m2m_through_regress/__init__.py | 2 -- tests/mail/__init__.py | 2 -- tests/max_lengths/__init__.py | 1 - tests/model_package/__init__.py | 1 - tests/requests/__init__.py | 3 --- tests/select_for_update/__init__.py | 1 - tests/unmanaged_models/__init__.py | 2 -- tests/view_tests/app0/__init__.py | 1 - tests/view_tests/app1/__init__.py | 1 - tests/view_tests/app2/__init__.py | 1 - tests/view_tests/app3/__init__.py | 1 - tests/view_tests/app4/__init__.py | 1 - tests/view_tests/tests/__init__.py | 8 -------- 32 files changed, 78 deletions(-) diff --git a/tests/admin_custom_urls/__init__.py b/tests/admin_custom_urls/__init__.py index 792d6005489..e69de29bb2d 100644 --- a/tests/admin_custom_urls/__init__.py +++ b/tests/admin_custom_urls/__init__.py @@ -1 +0,0 @@ -# diff --git a/tests/bash_completion/__init__.py b/tests/bash_completion/__init__.py index 8b137891791..e69de29bb2d 100644 --- a/tests/bash_completion/__init__.py +++ b/tests/bash_completion/__init__.py @@ -1 +0,0 @@ - diff --git a/tests/bash_completion/management/__init__.py b/tests/bash_completion/management/__init__.py index 8b137891791..e69de29bb2d 100644 --- a/tests/bash_completion/management/__init__.py +++ b/tests/bash_completion/management/__init__.py @@ -1 +0,0 @@ - diff --git a/tests/bash_completion/management/commands/__init__.py b/tests/bash_completion/management/commands/__init__.py index 8b137891791..e69de29bb2d 100644 --- a/tests/bash_completion/management/commands/__init__.py +++ b/tests/bash_completion/management/commands/__init__.py @@ -1 +0,0 @@ - diff --git a/tests/comment_tests/tests/__init__.py b/tests/comment_tests/tests/__init__.py index 6cbddbe82ba..df6d60010f9 100644 --- a/tests/comment_tests/tests/__init__.py +++ b/tests/comment_tests/tests/__init__.py @@ -83,11 +83,3 @@ class CommentTestCase(TestCase): d.update(f.initial) return d -from comment_tests.tests.test_app_api import * -from comment_tests.tests.test_feeds import * -from comment_tests.tests.test_models import * -from comment_tests.tests.test_comment_form import * -from comment_tests.tests.test_templatetags import * -from comment_tests.tests.test_comment_view import * -from comment_tests.tests.test_comment_utils_moderators import * -from comment_tests.tests.test_moderation_views import * diff --git a/tests/conditional_processing/__init__.py b/tests/conditional_processing/__init__.py index 380474e035b..e69de29bb2d 100644 --- a/tests/conditional_processing/__init__.py +++ b/tests/conditional_processing/__init__.py @@ -1 +0,0 @@ -# -*- coding:utf-8 -*- diff --git a/tests/delete_regress/__init__.py b/tests/delete_regress/__init__.py index 8b137891791..e69de29bb2d 100644 --- a/tests/delete_regress/__init__.py +++ b/tests/delete_regress/__init__.py @@ -1 +0,0 @@ - diff --git a/tests/dispatch/__init__.py b/tests/dispatch/__init__.py index 679895bb5c2..e69de29bb2d 100644 --- a/tests/dispatch/__init__.py +++ b/tests/dispatch/__init__.py @@ -1,2 +0,0 @@ -"""Unit-tests for the dispatch project -""" diff --git a/tests/dispatch/tests/__init__.py b/tests/dispatch/tests/__init__.py index 4c4d4fea8a9..e69de29bb2d 100644 --- a/tests/dispatch/tests/__init__.py +++ b/tests/dispatch/tests/__init__.py @@ -1,6 +0,0 @@ -""" -Unit-tests for the dispatch project -""" - -from .test_dispatcher import DispatcherTests, ReceiverTestCase -from .test_saferef import SaferefTests diff --git a/tests/distinct_on_fields/__init__.py b/tests/distinct_on_fields/__init__.py index 792d6005489..e69de29bb2d 100644 --- a/tests/distinct_on_fields/__init__.py +++ b/tests/distinct_on_fields/__init__.py @@ -1 +0,0 @@ -# diff --git a/tests/file_storage/__init__.py b/tests/file_storage/__init__.py index 8b137891791..e69de29bb2d 100644 --- a/tests/file_storage/__init__.py +++ b/tests/file_storage/__init__.py @@ -1 +0,0 @@ - diff --git a/tests/files/__init__.py b/tests/files/__init__.py index 8b137891791..e69de29bb2d 100644 --- a/tests/files/__init__.py +++ b/tests/files/__init__.py @@ -1 +0,0 @@ - diff --git a/tests/fixtures/__init__.py b/tests/fixtures/__init__.py index 139597f9cb0..e69de29bb2d 100644 --- a/tests/fixtures/__init__.py +++ b/tests/fixtures/__init__.py @@ -1,2 +0,0 @@ - - diff --git a/tests/fixtures_model_package/__init__.py b/tests/fixtures_model_package/__init__.py index 139597f9cb0..e69de29bb2d 100644 --- a/tests/fixtures_model_package/__init__.py +++ b/tests/fixtures_model_package/__init__.py @@ -1,2 +0,0 @@ - - diff --git a/tests/forms_tests/tests/__init__.py b/tests/forms_tests/tests/__init__.py index 39219f82bee..e69de29bb2d 100644 --- a/tests/forms_tests/tests/__init__.py +++ b/tests/forms_tests/tests/__init__.py @@ -1,19 +0,0 @@ -from .test_error_messages import (FormsErrorMessagesTestCase, - ModelChoiceFieldErrorMessagesTestCase) -from .test_extra import FormsExtraTestCase, FormsExtraL10NTestCase -from .test_fields import FieldsTests -from .test_forms import FormsTestCase -from .test_formsets import (FormsFormsetTestCase, FormsetAsFooTests, - TestIsBoundBehavior, TestEmptyFormSet) -from .test_input_formats import (LocalizedTimeTests, CustomTimeInputFormatsTests, - SimpleTimeFormatTests, LocalizedDateTests, CustomDateInputFormatsTests, - SimpleDateFormatTests, LocalizedDateTimeTests, - CustomDateTimeInputFormatsTests, SimpleDateTimeFormatTests) -from .test_media import FormsMediaTestCase, StaticFormsMediaTestCase -from .tests import (TestTicket12510, TestTicket14567, ModelFormCallableModelDefault, - FormsModelTestCase, RelatedModelFormTests) -from .test_regressions import FormsRegressionsTestCase -from .test_util import FormsUtilTestCase -from .test_validators import TestFieldWithValidators -from .test_widgets import (FormsWidgetTestCase, FormsI18NWidgetsTestCase, - WidgetTests, LiveWidgetTests, ClearableFileInputTests) diff --git a/tests/inspectdb/__init__.py b/tests/inspectdb/__init__.py index 8b137891791..e69de29bb2d 100644 --- a/tests/inspectdb/__init__.py +++ b/tests/inspectdb/__init__.py @@ -1 +0,0 @@ - diff --git a/tests/invalid_models/__init__.py b/tests/invalid_models/__init__.py index 8b137891791..e69de29bb2d 100644 --- a/tests/invalid_models/__init__.py +++ b/tests/invalid_models/__init__.py @@ -1 +0,0 @@ - diff --git a/tests/m2m_signals/__init__.py b/tests/m2m_signals/__init__.py index 8b137891791..e69de29bb2d 100644 --- a/tests/m2m_signals/__init__.py +++ b/tests/m2m_signals/__init__.py @@ -1 +0,0 @@ - diff --git a/tests/m2m_through/__init__.py b/tests/m2m_through/__init__.py index 139597f9cb0..e69de29bb2d 100644 --- a/tests/m2m_through/__init__.py +++ b/tests/m2m_through/__init__.py @@ -1,2 +0,0 @@ - - diff --git a/tests/m2m_through_regress/__init__.py b/tests/m2m_through_regress/__init__.py index 139597f9cb0..e69de29bb2d 100644 --- a/tests/m2m_through_regress/__init__.py +++ b/tests/m2m_through_regress/__init__.py @@ -1,2 +0,0 @@ - - diff --git a/tests/mail/__init__.py b/tests/mail/__init__.py index 139597f9cb0..e69de29bb2d 100644 --- a/tests/mail/__init__.py +++ b/tests/mail/__init__.py @@ -1,2 +0,0 @@ - - diff --git a/tests/max_lengths/__init__.py b/tests/max_lengths/__init__.py index 8b137891791..e69de29bb2d 100644 --- a/tests/max_lengths/__init__.py +++ b/tests/max_lengths/__init__.py @@ -1 +0,0 @@ - diff --git a/tests/model_package/__init__.py b/tests/model_package/__init__.py index 8b137891791..e69de29bb2d 100644 --- a/tests/model_package/__init__.py +++ b/tests/model_package/__init__.py @@ -1 +0,0 @@ - diff --git a/tests/requests/__init__.py b/tests/requests/__init__.py index 3a328850c99..e69de29bb2d 100644 --- a/tests/requests/__init__.py +++ b/tests/requests/__init__.py @@ -1,3 +0,0 @@ -""" -Tests for Django's various Request objects. -""" diff --git a/tests/select_for_update/__init__.py b/tests/select_for_update/__init__.py index 792d6005489..e69de29bb2d 100644 --- a/tests/select_for_update/__init__.py +++ b/tests/select_for_update/__init__.py @@ -1 +0,0 @@ -# diff --git a/tests/unmanaged_models/__init__.py b/tests/unmanaged_models/__init__.py index 139597f9cb0..e69de29bb2d 100644 --- a/tests/unmanaged_models/__init__.py +++ b/tests/unmanaged_models/__init__.py @@ -1,2 +0,0 @@ - - diff --git a/tests/view_tests/app0/__init__.py b/tests/view_tests/app0/__init__.py index 792d6005489..e69de29bb2d 100644 --- a/tests/view_tests/app0/__init__.py +++ b/tests/view_tests/app0/__init__.py @@ -1 +0,0 @@ -# diff --git a/tests/view_tests/app1/__init__.py b/tests/view_tests/app1/__init__.py index 792d6005489..e69de29bb2d 100644 --- a/tests/view_tests/app1/__init__.py +++ b/tests/view_tests/app1/__init__.py @@ -1 +0,0 @@ -# diff --git a/tests/view_tests/app2/__init__.py b/tests/view_tests/app2/__init__.py index 792d6005489..e69de29bb2d 100644 --- a/tests/view_tests/app2/__init__.py +++ b/tests/view_tests/app2/__init__.py @@ -1 +0,0 @@ -# diff --git a/tests/view_tests/app3/__init__.py b/tests/view_tests/app3/__init__.py index 792d6005489..e69de29bb2d 100644 --- a/tests/view_tests/app3/__init__.py +++ b/tests/view_tests/app3/__init__.py @@ -1 +0,0 @@ -# diff --git a/tests/view_tests/app4/__init__.py b/tests/view_tests/app4/__init__.py index 792d6005489..e69de29bb2d 100644 --- a/tests/view_tests/app4/__init__.py +++ b/tests/view_tests/app4/__init__.py @@ -1 +0,0 @@ -# diff --git a/tests/view_tests/tests/__init__.py b/tests/view_tests/tests/__init__.py index dae149a8ef2..e69de29bb2d 100644 --- a/tests/view_tests/tests/__init__.py +++ b/tests/view_tests/tests/__init__.py @@ -1,8 +0,0 @@ -from .test_debug import (DebugViewTests, ExceptionReporterTests, - ExceptionReporterTests, PlainTextReportTests, ExceptionReporterFilterTests, - AjaxResponseExceptionReporterFilter) -from .test_defaults import DefaultsTests -from .test_i18n import JsI18NTests, I18NTests, JsI18NTestsMultiPackage, JavascriptI18nTests -from .test_shortcuts import ShortcutTests -from .test_specials import URLHandling -from .test_static import StaticHelperTest, StaticUtilsTests, StaticTests