Skip to content

Commit

Permalink
feat(test): increase backend test on the thumbnail generation route
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquesfize committed Dec 20, 2024
1 parent ca1085c commit fc22d76
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions apptax/tests/test_media.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit fc22d76

Please sign in to comment.