Skip to content

Commit

Permalink
fix(gifv): Add WebM tests
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermef committed Mar 15, 2022
1 parent d819ada commit a61332a
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion thumbor_plugins/optimizers/gifv/tests/integration/test_gifv.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,24 @@ class GIFVTest(EngineCase):

@gen_test
async def test_gifv(self):
await self.http_client.fetch(
response = await self.http_client.fetch(
self.get_url("/unsafe/filters:gifv()/animated.gif")
)
self.assertEqual(response.code, 200)
self.assertEqual(response.headers["Content-Type"], "video/mp4")

@gen_test
async def test_gifv_with_background(self):
response = await self.http_client.fetch(
self.get_url("/unsafe/filters:gifv(mp4):background_color(ff00ff)/animated.gif")
)
self.assertEqual(response.code, 200)
self.assertEqual(response.headers["Content-Type"], "video/mp4")

@gen_test
async def test_gifv_webm(self):
response = await self.http_client.fetch(
self.get_url("/unsafe/filters:gifv(webm)/animated.gif")
)
self.assertEqual(response.code, 200)
self.assertEqual(response.headers["Content-Type"], "video/webm")

0 comments on commit a61332a

Please sign in to comment.