Commit 8082b6cf authored by Laurent Bachelier's avatar Laurent Bachelier

Add a test for Gallery

parent fe17ea8c
......@@ -70,3 +70,12 @@ class GalleryTest(TestCase):
assert img.size[1] == 42
res ='/images/notanimage.txt?view=thumbnail', status=404)
def test_getRaw(self):
# check we get the full image and not the thumbnail
res ='/images/image1.jpg')
img =
img =
assert img.size[0] == 1337
assert img.size[1] == 1337
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment