More tests for get_thumb

This commit is contained in:
Simon Conseil
2013-08-18 23:13:34 +02:00
parent 03fd26954b
commit 29def4e0e8

View File

@@ -31,6 +31,12 @@ def test_get_thumb(settings):
for src, ref in tests:
assert get_thumb(settings, src) == ref
tests = [('example.webm', 'thumbnails/example.tn.jpg'),
('test/example.mp4', 'test/thumbnails/example.tn.jpg'),
('test/t/example.avi', 'test/t/thumbnails/example.tn.jpg')]
for src, ref in tests:
assert get_thumb(settings, src) == ref
def test_get_orig(settings):
tests = [('example.jpg', 'original/example.jpg'),