From 816e5c65e8489e82eeafa194679c0dd40f812c1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Schoentgen?= Date: Fri, 18 Oct 2024 12:57:59 +0200 Subject: [PATCH] fix(tests): skip wepb images Related to #90. --- tests/unit/test_app.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/unit/test_app.py b/tests/unit/test_app.py index 45c057f..3741c8a 100644 --- a/tests/unit/test_app.py +++ b/tests/unit/test_app.py @@ -268,8 +268,9 @@ def test_static_favicon() -> None: def test_static_image(setup_data: FixtureFunction) -> None: - image = choice(functions.retrieve_all_uniq_metadata()) - assert image + # We filter out webp images because they are not properly handled on the CI, see #90 + while (image := choice(functions.retrieve_all_uniq_metadata())).file.endswith(".webp"): + pass response = app.static_image(image.file) response.body.close() assert response.status_code == 200