|
@@ -182,6 +182,7 @@ class TestImageThumbSize(object): |
|
|
assert nh == 50 |
|
|
assert nh == 50 |
|
|
|
|
|
|
|
|
class TestImageThumbnails(object): |
|
|
class TestImageThumbnails(object): |
|
|
|
|
|
# TODO: add tests for cropping? (not easy currently) |
|
|
|
|
|
|
|
|
def setUp(self): |
|
|
def setUp(self): |
|
|
TEST_SITE.make() |
|
|
TEST_SITE.make() |
|
@@ -268,7 +269,6 @@ class TestImageThumbnails(object): |
|
|
im = Image.open(self._deployed_image(prefix, LANDSCAPE_IMAGE)) |
|
|
im = Image.open(self._deployed_image(prefix, LANDSCAPE_IMAGE)) |
|
|
assert im.size[1] == 50 |
|
|
assert im.size[1] == 50 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_larger_and_smaller(self): |
|
|
def test_larger_and_smaller(self): |
|
|
prefix='thumb_' |
|
|
prefix='thumb_' |
|
|
meta = dict(thumbnails=[dict(larger=100, smaller=50, prefix=prefix, include=['*.jpg'])]) |
|
|
meta = dict(thumbnails=[dict(larger=100, smaller=50, prefix=prefix, include=['*.jpg'])]) |
|
|