Browse Source

Make sure gif files are zipped correctly.

pull/185/head
Rémy HUBSCHER 10 years ago
parent
commit
cb17a03316
  1. BIN
      tests/sample/pictures/dir1/test1/50a1d0bc-763d-457e-b634-c87f16a64270.gif
  2. 3
      tests/test_zip.py

BIN
tests/sample/pictures/dir1/test1/50a1d0bc-763d-457e-b634-c87f16a64270.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

3
tests/test_zip.py

@ -32,7 +32,8 @@ def test_zipped_correctly(tmpdir):
zip_file = zipfile.ZipFile(zipped1[0], 'r')
expected = ('11.jpg', 'archlinux-kiss-1024x640.png',
'flickr_jerquiaga_2394751088_cc-by-nc.jpg')
'flickr_jerquiaga_2394751088_cc-by-nc.jpg',
'50a1d0bc-763d-457e-b634-c87f16a64270.gif')
for filename in zip_file.namelist():
assert filename in expected

Loading…
Cancel
Save