Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix numer of queries after rebase

fowczrek6c02b60e6713
diff --git a/saleor/graphql/checkout/tests/benchmark/test_checkout_mutations.py b/saleor/graphql/checkout/tests/benchmark/test_checkout_mutations.py
index 626903b7c4..ebc48153d6 100644
--- a/saleor/graphql/checkout/tests/benchmark/test_checkout_mutations.py
+++ b/saleor/graphql/checkout/tests/benchmark/test_checkout_mutations.py
@@ -417,7 +417,7 @@ def test_create_checkout_with_reservations(
}
}
- with django_assert_num_queries(73):
+ with django_assert_num_queries(74):
response = api_client.post_graphql(query, variables)
assert get_graphql_content(response)["data"]["checkoutCreate"]
assert Checkout.objects.first().lines.count() == 1
@@ -435,7 +435,7 @@ def test_create_checkout_with_reservations(
}
}
- with django_assert_num_queries(73):
+ with django_assert_num_queries(74):
response = api_client.post_graphql(query, variables)
assert get_graphql_content(response)["data"]["checkoutCreate"]
assert Checkout.objects.first().lines.count() == 10
@@ -566,7 +566,7 @@ def test_create_checkout_with_order_promotion(
}
# when
- with django_assert_num_queries(78):
+ with django_assert_num_queries(79):
response = user_api_client.post_graphql(MUTATION_CHECKOUT_CREATE, variables)
# then
@@ -821,7 +821,7 @@ def test_update_checkout_lines_with_reservations(
reservation_length=5,
)
- with django_assert_num_queries(94):
+ with django_assert_num_queries(95):
variant_id = graphene.Node.to_global_id("ProductVariant", variants[0].pk)
variables = {
"id": to_global_id_or_none(checkout),
@@ -835,7 +835,7 @@ def test_update_checkout_lines_with_reservations(
assert not data["errors"]
# Updating multiple lines in checkout has same query count as updating one
- with django_assert_num_queries(94):
+ with django_assert_num_queries(95):
variables = {
"id": to_global_id_or_none(checkout),
"lines": [],
@@ -1080,7 +1080,7 @@ def test_add_checkout_lines_with_reservations(
new_lines.append({"quantity": 2, "variantId": variant_id})
# Adding multiple lines to checkout has same query count as adding one
- with django_assert_num_queries(93):
+ with django_assert_num_queries(94):
variables = {
"id": Node.to_global_id("Checkout", checkout.pk),
"lines": [new_lines[0]],
@@ -1093,7 +1093,7 @@ def test_add_checkout_lines_with_reservations(
checkout.lines.exclude(id=line.id).delete()
- with django_assert_num_queries(93):
+ with django_assert_num_queries(94):
variables = {
"id": Node.to_global_id("Checkout", checkout.pk),
"lines": new_lines,
@@ -1143,7 +1143,7 @@ def test_add_checkout_lines_catalogue_discount_applies(
}
# when
- with django_assert_num_queries(85):
+ with django_assert_num_queries(86):
response = user_api_client.post_graphql(MUTATION_CHECKOUT_LINES_ADD, variables)
# then
@@ -1228,7 +1228,7 @@ def test_add_checkout_lines_multiple_catalogue_discount_applies(
}
# when
- with django_assert_num_queries(85):
+ with django_assert_num_queries(86):
response = user_api_client.post_graphql(MUTATION_CHECKOUT_LINES_ADD, variables)
# then
@@ -1263,7 +1263,7 @@ def test_add_checkout_lines_order_discount_applies(
}
# when
- with django_assert_num_queries(88):
+ with django_assert_num_queries(89):
response = user_api_client.post_graphql(MUTATION_CHECKOUT_LINES_ADD, variables)
# then
@@ -1297,7 +1297,7 @@ def test_add_checkout_lines_gift_discount_applies(
}
# when
- with django_assert_num_queries(114):
+ with django_assert_num_queries(115):
response = user_api_client.post_graphql(MUTATION_CHECKOUT_LINES_ADD, variables)
# then