From 69b5f1e21373e3cc4f70aa01f44e299f3134f835 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Bournhonesque?= Date: Fri, 25 Aug 2023 11:25:38 +0200 Subject: [PATCH] fix: fix wrong call to add_category_insight in tests --- tests/unit/workers/tasks/test_product_updated.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/unit/workers/tasks/test_product_updated.py b/tests/unit/workers/tasks/test_product_updated.py index 95dcd9223d..ae5e0c4db2 100644 --- a/tests/unit/workers/tasks/test_product_updated.py +++ b/tests/unit/workers/tasks/test_product_updated.py @@ -27,10 +27,9 @@ def test_add_category_insight_no_insights(mocker): import_insights_mock = mocker.patch( "robotoff.workers.tasks.product_updated.import_insights" ) - imported = add_category_insight(DEFAULT_PRODUCT_ID, {"code": DEFAULT_BARCODE}) + add_category_insight(DEFAULT_PRODUCT_ID, {"code": DEFAULT_BARCODE}) assert not import_insights_mock.called - assert not imported def test_add_category_insight_with_ml_insights(mocker):