Skip to content

Commit

Permalink
tests: fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael0202 committed Dec 20, 2024
1 parent 8ddd341 commit 381d914
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/integration/insights/test_annotate.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,13 @@ def test_select_nutrition_image_already_selected(
mock_select_rotate_image: Mock,
nutrient_extraction_insight: ProductInsightFactory,
):
product: JSONType = {"images": {"1": {}, "nutrition_fr": {}}, "lang": "fr"}
product: JSONType = {
"images": {
"1": {"sizes": {"full": {"w": 1000, "h": 2000}}},
"nutrition_fr": {},
},
"lang": "fr",
}
NutrientExtractionAnnotator.select_nutrition_image(
insight=nutrient_extraction_insight,
product=product,
Expand Down

0 comments on commit 381d914

Please sign in to comment.