mirror of
https://github.com/django/django.git
synced 2025-11-02 04:48:33 +00:00
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
This commit is contained in:
parent
956da729d1
commit
24f4764a48
242 changed files with 308 additions and 485 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue