diff options
| author | Jannis Leidel <jannis@leidel.info> | 2011-07-13 09:35:51 +0000 |
|---|---|---|
| committer | Jannis Leidel <jannis@leidel.info> | 2011-07-13 09:35:51 +0000 |
| commit | 24f4764a48e4141923a78c8820e4cd7b411ec0fc (patch) | |
| tree | eed2e98eb3aad1e10c7fda902bc8b875e19929e2 /tests/regressiontests/comment_tests | |
| parent | 956da729d19d619c210a2466d4435d4967249e7f (diff) | |
Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for the work on the patch and Alex for reviewing.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16539 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/comment_tests')
4 files changed, 7 insertions, 10 deletions
diff --git a/tests/regressiontests/comment_tests/models.py b/tests/regressiontests/comment_tests/models.py index 8877ea1155..dc6c842ab6 100644 --- a/tests/regressiontests/comment_tests/models.py +++ b/tests/regressiontests/comment_tests/models.py @@ -30,5 +30,5 @@ class Entry(models.Model): return self.title class Book(models.Model): - dewey_decimal = models.DecimalField(primary_key = True, decimal_places=2, max_digits=5) + dewey_decimal = models.DecimalField(primary_key=True, decimal_places=2, max_digits=5)
\ No newline at end of file diff --git a/tests/regressiontests/comment_tests/tests/comment_utils_moderators_tests.py b/tests/regressiontests/comment_tests/tests/comment_utils_moderators_tests.py index 4177163f2a..ac9bde6fed 100644 --- a/tests/regressiontests/comment_tests/tests/comment_utils_moderators_tests.py +++ b/tests/regressiontests/comment_tests/tests/comment_utils_moderators_tests.py @@ -1,9 +1,11 @@ -from regressiontests.comment_tests.tests import CommentTestCase, CT, Site -from django.contrib.comments.forms import CommentForm +from django.core import mail + from django.contrib.comments.models import Comment -from django.contrib.comments.moderation import moderator, CommentModerator, AlreadyModerated +from django.contrib.comments.moderation import (moderator, CommentModerator, + AlreadyModerated) + from regressiontests.comment_tests.models import Entry -from django.core import mail +from regressiontests.comment_tests.tests import CommentTestCase class EntryModerator1(CommentModerator): email_notification = True diff --git a/tests/regressiontests/comment_tests/tests/feed_tests.py b/tests/regressiontests/comment_tests/tests/feed_tests.py index 2dccbcd0f7..4497f95c6e 100644 --- a/tests/regressiontests/comment_tests/tests/feed_tests.py +++ b/tests/regressiontests/comment_tests/tests/feed_tests.py @@ -1,7 +1,3 @@ -import warnings - -from django.test.utils import get_warnings_state, restore_warnings_state - from regressiontests.comment_tests.tests import CommentTestCase diff --git a/tests/regressiontests/comment_tests/tests/templatetag_tests.py b/tests/regressiontests/comment_tests/tests/templatetag_tests.py index 0ead6c2257..0ee34ac670 100644 --- a/tests/regressiontests/comment_tests/tests/templatetag_tests.py +++ b/tests/regressiontests/comment_tests/tests/templatetag_tests.py @@ -1,5 +1,4 @@ from django.contrib.comments.forms import CommentForm -from django.contrib.comments.models import Comment from django.contrib.contenttypes.models import ContentType from django.template import Template, Context from regressiontests.comment_tests.models import Article, Author |
