Merge pull request #2431 from bagerard/remove_pillow_test_restriction

Remove restriction on Pillow version in tests
This commit is contained in:
Bastien Gérard 2020-11-29 20:48:13 +01:00 committed by GitHub
commit 92f6fce77d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -115,7 +115,7 @@ extra_opts = {
"pytest-cov",
"coverage<5.0", # recent coverage switched to sqlite format for the .coverage file which isn't handled properly by coveralls
"blinker",
"Pillow>=2.0.0, <7.0.0", # 7.0.0 dropped Python2 support
"Pillow>=7.0.0",
],
}

View File

@ -429,7 +429,7 @@ class TestFileField(MongoDBTestCase):
@require_pil
def test_image_field_resize(self):
class TestImage(Document):
image = ImageField(size=(185, 37))
image = ImageField(size=(185, 37, True))
TestImage.drop_collection()
@ -471,7 +471,7 @@ class TestFileField(MongoDBTestCase):
@require_pil
def test_image_field_thumbnail(self):
class TestImage(Document):
image = ImageField(thumbnail_size=(92, 18))
image = ImageField(thumbnail_size=(92, 18, True))
TestImage.drop_collection()