Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Improve test
Adam Janikc557024c3547
diff --git a/tests/test_graphql.py b/tests/test_graphql.pyindex 9c8bf8e0be..02b4985d6a 100644--- a/tests/test_graphql.py+++ b/tests/test_graphql.py@@ -205,7 +205,7 @@ def test_product_with_collections(admin_client, product, collection):query = '''query getProduct($productID: ID!) {product(id: $productID) {- collections {+ collections(first: 1) {edges {node {name@@ -226,6 +226,7 @@ def test_product_with_collections(admin_client, product, collection):assert 'errors' not in contentdata = content['data']['product']assert data['collections']['edges'][0]['node']['name'] == collection.name+ assert len(data['collections']['edges']) == 1def test_filter_product_by_category(client, product):