mirror of
https://github.com/Hopiu/django-imagekit.git
synced 2026-03-16 21:30:23 +00:00
Use force_bytes from imagekit.lib in test_cachefiles
This commit is contained in:
parent
45f10075b6
commit
8a600d30b3
1 changed files with 1 additions and 4 deletions
|
|
@ -1,11 +1,8 @@
|
|||
from django.conf import settings
|
||||
try:
|
||||
from django.utils.encoding import force_bytes
|
||||
except ImportError:
|
||||
from django.utils.encoding import smart_str as force_bytes
|
||||
from hashlib import md5
|
||||
from imagekit.cachefiles import ImageCacheFile, LazyImageCacheFile
|
||||
from imagekit.cachefiles.backends import Simple
|
||||
from imagekit.lib import force_bytes
|
||||
from nose.tools import raises, eq_
|
||||
from .imagegenerators import TestSpec
|
||||
from .utils import (assert_file_is_truthy, assert_file_is_falsy,
|
||||
|
|
|
|||
Loading…
Reference in a new issue