Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix test import
akjanikf2b797573f17
diff --git a/tests/test_collection.py b/tests/test_collection.pyindex 7bef4a8f06..6585401700 100644--- a/tests/test_collection.py+++ b/tests/test_collection.py@@ -4,6 +4,7 @@ from django.urls import reversefrom .utils import get_redirect_locationfrom saleor.dashboard.collection.forms import CollectionForm+from saleor.product.models import Collectiondef test_list_view(admin_client, collection):@@ -81,9 +82,8 @@ def test_collection_delete_view(admin_client, collection):assert response.status_code == 302assert Collection.objects.count() == (collections_count - 1)-from unittest.mock import Mock, MagicMock+def test_collection_index_in_storefront(admin_client, collection):- collection.products = MagicMock()response = admin_client.get(reverse('product:collection',kwargs={'pk': collection.id, 'slug': collection.slug}))