Skip to content

Commit

Permalink
fix(tests): skip wepb images
Browse files Browse the repository at this point in the history
Related to #90.
  • Loading branch information
BoboTiG committed Oct 18, 2024
1 parent fb902d1 commit 816e5c6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/unit/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 816e5c6

Please sign in to comment.