1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Serialized some tests that interact with the filesystem.

Considering the APIs exercised by these test cases, it's hard to make
them independent.
This commit is contained in:
Aymeric Augustin
2015-02-05 22:33:13 +01:00
parent ba81386487
commit b799a50c8e
2 changed files with 14 additions and 7 deletions

View File

@@ -8,6 +8,7 @@ from django.core.exceptions import ImproperlyConfigured
from django.core.files import File
from django.core.files.images import ImageFile
from django.test import TestCase
from django.test.testcases import SerializeMixin
from django.utils._os import upath
try:
@@ -27,11 +28,13 @@ else:
PersonTwoImages = Person
class ImageFieldTestMixin(object):
class ImageFieldTestMixin(SerializeMixin):
"""
Mixin class to provide common functionality to ImageField test classes.
"""
lockfile = __file__
# Person model to use for tests.
PersonModel = PersonWithHeightAndWidth
# File class to use for file instances.