diff --git a/README.md b/README.md index eb96919..19a7db2 100644 --- a/README.md +++ b/README.md @@ -49,5 +49,13 @@ For example, the mozjpeg optimizer is released on the package `thumbor-plugins-mozjpeg`, and the Gifv one on the package `thumbor-plugins-gifv`. + +## Third Party + +Integration tests uses a bug.png picture by [Marcelo Jorge Vieira][marcelometal] +licensed under [CC-BY][cc-by]. + +[cc-by]: https://creativecommons.org/licenses/by/2.0/ [contributing]: https://github.com/thumbor/thumbor-plugins/blob/master/CONTRIBUTING.md +[marcelometal]: https://www.flickr.com/photos/marcelometal/540719764/ [thumbor]: https://github.com/thumbor/thumbor diff --git a/thumbor_plugins/optimizers/optipng/tests/integration/imgs/bend.png b/thumbor_plugins/optimizers/optipng/tests/integration/imgs/bend.png deleted file mode 100644 index 4b5bdaa..0000000 Binary files a/thumbor_plugins/optimizers/optipng/tests/integration/imgs/bend.png and /dev/null differ diff --git a/thumbor_plugins/optimizers/optipng/tests/integration/imgs/bug.png b/thumbor_plugins/optimizers/optipng/tests/integration/imgs/bug.png new file mode 100644 index 0000000..951e77d Binary files /dev/null and b/thumbor_plugins/optimizers/optipng/tests/integration/imgs/bug.png differ diff --git a/thumbor_plugins/optimizers/optipng/tests/integration/test_optipng.py b/thumbor_plugins/optimizers/optipng/tests/integration/test_optipng.py index 3f970e2..0ad8ed9 100644 --- a/thumbor_plugins/optimizers/optipng/tests/integration/test_optipng.py +++ b/thumbor_plugins/optimizers/optipng/tests/integration/test_optipng.py @@ -11,5 +11,5 @@ class OptiPNG(EngineCase): @gen_test(timeout=30) async def test_optipng(self): - result = await self.http_client.fetch(self.get_url("/unsafe/bend.png")) - self.assert_result_smaller_than_original(result, "bend.png") + result = await self.http_client.fetch(self.get_url("/unsafe/bug.png")) + self.assert_result_smaller_than_original(result, "bug.png") diff --git a/thumbor_plugins/optimizers/pngcrush/tests/integration/imgs/bend.png b/thumbor_plugins/optimizers/pngcrush/tests/integration/imgs/bend.png deleted file mode 100644 index 4b5bdaa..0000000 Binary files a/thumbor_plugins/optimizers/pngcrush/tests/integration/imgs/bend.png and /dev/null differ diff --git a/thumbor_plugins/optimizers/pngcrush/tests/integration/imgs/bug.png b/thumbor_plugins/optimizers/pngcrush/tests/integration/imgs/bug.png new file mode 100644 index 0000000..951e77d Binary files /dev/null and b/thumbor_plugins/optimizers/pngcrush/tests/integration/imgs/bug.png differ diff --git a/thumbor_plugins/optimizers/pngcrush/tests/integration/test_pngcrush.py b/thumbor_plugins/optimizers/pngcrush/tests/integration/test_pngcrush.py index c0ecf81..670b136 100644 --- a/thumbor_plugins/optimizers/pngcrush/tests/integration/test_pngcrush.py +++ b/thumbor_plugins/optimizers/pngcrush/tests/integration/test_pngcrush.py @@ -11,5 +11,5 @@ class PNGCrush(EngineCase): @gen_test async def test_pngcrush(self): - result = await self.http_client.fetch(self.get_url("/unsafe/bend.png")) - self.assert_result_smaller_than_original(result, "bend.png") + result = await self.http_client.fetch(self.get_url("/unsafe/bug.png")) + self.assert_result_smaller_than_original(result, "bug.png") diff --git a/thumbor_plugins/optimizers/pngquant/tests/integration/imgs/bend.png b/thumbor_plugins/optimizers/pngquant/tests/integration/imgs/bend.png deleted file mode 100644 index 4b5bdaa..0000000 Binary files a/thumbor_plugins/optimizers/pngquant/tests/integration/imgs/bend.png and /dev/null differ diff --git a/thumbor_plugins/optimizers/pngquant/tests/integration/imgs/bug.png b/thumbor_plugins/optimizers/pngquant/tests/integration/imgs/bug.png new file mode 100644 index 0000000..951e77d Binary files /dev/null and b/thumbor_plugins/optimizers/pngquant/tests/integration/imgs/bug.png differ diff --git a/thumbor_plugins/optimizers/pngquant/tests/integration/test_pngquant.py b/thumbor_plugins/optimizers/pngquant/tests/integration/test_pngquant.py index 1b26f3e..f59e6aa 100644 --- a/thumbor_plugins/optimizers/pngquant/tests/integration/test_pngquant.py +++ b/thumbor_plugins/optimizers/pngquant/tests/integration/test_pngquant.py @@ -11,5 +11,5 @@ class PNGQuantTest(EngineCase): @gen_test async def test_pngquant(self): - result = await self.http_client.fetch(self.get_url("/unsafe/bend.png")) - self.assert_result_smaller_than_original(result, "bend.png") + result = await self.http_client.fetch(self.get_url("/unsafe/bug.png")) + self.assert_result_smaller_than_original(result, "bug.png")