Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Change pk in tests
Mira03c976043446
diff --git a/tests/test_collection.py b/tests/test_collection.pyindex b42e1da868..10039a3f89 100644--- a/tests/test_collection.py+++ b/tests/test_collection.py@@ -74,7 +74,7 @@ def test_collection_update_view(admin_client, collection, product_in_stock):def test_collection_delete_view(admin_client, collection):# Test Http404 when collection doesn't exist- pk = collection.pk + 1+ pk = 500url404 = reverse('dashboard:collection-delete',kwargs={'collection_pk': pk})response404 = admin_client.post(url404)