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/model_fields | |
| 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/model_fields')
| -rw-r--r-- | tests/regressiontests/model_fields/imagefield.py | 5 | ||||
| -rw-r--r-- | tests/regressiontests/model_fields/tests.py | 12 |
2 files changed, 6 insertions, 11 deletions
diff --git a/tests/regressiontests/model_fields/imagefield.py b/tests/regressiontests/model_fields/imagefield.py index dd79e7aefa..c952aa981a 100644 --- a/tests/regressiontests/model_fields/imagefield.py +++ b/tests/regressiontests/model_fields/imagefield.py @@ -2,12 +2,11 @@ import os import shutil from django.core.files import File -from django.core.files.base import ContentFile from django.core.files.images import ImageFile from django.test import TestCase -from models import Image, Person, PersonWithHeight, PersonWithHeightAndWidth, \ - PersonDimensionsFirst, PersonTwoImages, TestImageFieldFile +from models import (Image, Person, PersonWithHeight, PersonWithHeightAndWidth, + PersonDimensionsFirst, PersonTwoImages, TestImageFieldFile) # If PIL available, do these tests. diff --git a/tests/regressiontests/model_fields/tests.py b/tests/regressiontests/model_fields/tests.py index b42c0af784..4944db78e8 100644 --- a/tests/regressiontests/model_fields/tests.py +++ b/tests/regressiontests/model_fields/tests.py @@ -12,14 +12,10 @@ from models import Foo, Bar, Whiz, BigD, BigS, Image, BigInt, Post, NullBooleanM # If PIL available, do these tests. if Image: - from imagefield import \ - ImageFieldTests, \ - ImageFieldTwoDimensionsTests, \ - ImageFieldNoDimensionsTests, \ - ImageFieldOneDimensionTests, \ - ImageFieldDimensionsFirstTests, \ - ImageFieldUsingFileTests, \ - TwoImageFieldTests + from imagefield import ( + ImageFieldTests, ImageFieldTwoDimensionsTests, TwoImageFieldTests, + ImageFieldNoDimensionsTests, ImageFieldOneDimensionTests, + ImageFieldDimensionsFirstTests, ImageFieldUsingFileTests) class BasicFieldTests(test.TestCase): |
