mirror of
https://github.com/saphid/frame-control.git
synced 2026-10-06 10:00:34 +02:00
Merge branch 'art-sources' into apk-store-fixes
This commit is contained in:
commit
2f9ddeea76
5 files changed
+18
-9
No files matched your search
@@ -244,6 +244,10 @@ class ArtworkTests(unittest.TestCase):
|
||||
data = (FIXTURES / 'icon.jpg').read_bytes()
|
||||
self.assertEqual(art.image_type(data), 'jpg')
|
||||
self.assertEqual(art.image_type(data + b'\0' * 64), 'jpg') # trailing padding after EOI
|
||||
gif = b'GIF89a' + struct.pack('<HH', 640, 360) + b'\0' * 20 # gameplay GIFs: first frame drawn
|
||||
self.assertEqual(art.image_type(gif), 'gif')
|
||||
with self.assertRaises(ValueError):
|
||||
art.image_type(b'GIF89a' + struct.pack('<HH', 0, 360) + b'\0' * 20)
|
||||
with self.assertRaises(ValueError):
|
||||
art.image_type(data[:30])
|
||||
|
||||
|
||||
Reference in new issue
Block a user