Skip to content

Commit

Permalink
fix: fix wrong call to add_category_insight in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael0202 committed Aug 25, 2023
1 parent 6342832 commit 69b5f1e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/unit/workers/tasks/test_product_updated.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 69b5f1e

Please sign in to comment.