From: Radek Czajka Date: Fri, 17 Aug 2012 10:27:16 +0000 (+0200) Subject: smaller image for tests X-Git-Tag: 1.7~151 X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/d4beaf40d156e3aabb4c8f7e6b0d034d9d0d5ad8 smaller image for tests --- diff --git a/tests/files/picture/angelus-novus.jpeg b/tests/files/picture/angelus-novus.jpeg new file mode 100644 index 0000000..fd0394f Binary files /dev/null and b/tests/files/picture/angelus-novus.jpeg differ diff --git a/tests/files/picture/angelus-novus.png b/tests/files/picture/angelus-novus.png deleted file mode 100644 index 9925dad..0000000 Binary files a/tests/files/picture/angelus-novus.png and /dev/null differ diff --git a/tests/files/picture/angelus-novus.xml b/tests/files/picture/angelus-novus.xml index 0f26730..964faed 100644 --- a/tests/files/picture/angelus-novus.xml +++ b/tests/files/picture/angelus-novus.xml @@ -18,9 +18,9 @@ Domena publiczna - Paul Klee zm. 1940 1940 Image - image/png - 1645 x 2000 px - d9ead48f3442ac4e1add602aacdffa4638ae8e21 + image/jpeg + 329 x 400 px + 5ed8e8d24d92017c6341c0b8cfcc414dec55b8bf 1920 lat @@ -29,14 +29,14 @@
-
+
-
+
-
-
+
+
diff --git a/tests/test_picture.py b/tests/test_picture.py index 71a77dc..f64f624 100644 --- a/tests/test_picture.py +++ b/tests/test_picture.py @@ -31,7 +31,7 @@ def test_wlpicture(): # from nose.tools import set_trace; set_trace() assert pi.type[0] == u"Image" - assert pi.mime_type == u'image/png' == wlp.mime_type + assert pi.mime_type == u'image/jpeg' == wlp.mime_type assert wlp.slug == 'angelus-novus' assert path.exists(wlp.image_path)