Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Remove hardcoded value
Marcin Gębala9ac43293dc13
diff --git a/tests/api/test_core.py b/tests/api/test_core.pyindex 54b7023c8e..447eba3969 100644--- a/tests/api/test_core.py+++ b/tests/api/test_core.py@@ -9,6 +9,7 @@ from saleor.graphql.core.types import ReportingPeriodfrom saleor.graphql.core.utils import clean_seo_fields, snake_to_camel_casefrom saleor.graphql.product import types as product_typesfrom saleor.graphql.utils import get_database_id, reporting_period_to_date+from saleor.product.models import Productdef test_clean_seo_fields():@@ -137,4 +138,4 @@ def test_total_count_query(api_client, product):"""response = api_client.post_graphql(query)content = get_graphql_content(response)- assert content['data']['products']['totalCount'] == 1+ assert content['data']['products']['totalCount'] == Product.objects.count()