From af9a95651dc65af5d19aa26d3d7a5b1765a9ca99 Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Mon, 8 Jul 2024 18:13:49 +0200 Subject: [PATCH] test respect new validation logic --- cookbook/tests/api/test_api_recipe_book_entry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/tests/api/test_api_recipe_book_entry.py b/cookbook/tests/api/test_api_recipe_book_entry.py index 11d1523eab..38b8c5e79b 100644 --- a/cookbook/tests/api/test_api_recipe_book_entry.py +++ b/cookbook/tests/api/test_api_recipe_book_entry.py @@ -100,7 +100,7 @@ def test_add_duplicate(u1_s1, obj_1): {'book': obj_1.book.pk, 'recipe': obj_1.recipe.pk}, content_type='application/json' ) - assert r.status_code == 201 + assert r.status_code == 400 def test_delete(u1_s1, u1_s2, obj_1):