From fc22d766d9306e564758139e6816d87c9cf2c185 Mon Sep 17 00:00:00 2001 From: jacquesfize Date: Fri, 20 Dec 2024 15:07:46 +0100 Subject: [PATCH] feat(test): increase backend test on the thumbnail generation route --- apptax/tests/test_media.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/apptax/tests/test_media.py b/apptax/tests/test_media.py index 69fb287a..9cde0796 100644 --- a/apptax/tests/test_media.py +++ b/apptax/tests/test_media.py @@ -122,3 +122,18 @@ def get_thumbnail(self, id_media): url_for("t_media.getThumbnail_tmedias", id_media=id_media), ) assert response.status_code == 200 + + response = self.client.get( + url_for("t_media.getThumbnail_tmedias", id_media=id_media, w=200, h=200), + ) + assert response.status_code == 200 + + response = self.client.get( + url_for("t_media.getThumbnail_tmedias", id_media=id_media, w=200), + ) + assert response.status_code == 200 + + response = self.client.get( + url_for("t_media.getThumbnail_tmedias", id_media=id_media, h=200), + ) + assert response.status_code == 200