Skip to content

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

Skip UserWarnings in tests

IKarbowiakb60d4ea9646e
diff --git a/saleor/graphql/checkout/tests/benchmark/test_checkout_mutations.py b/saleor/graphql/checkout/tests/benchmark/test_checkout_mutations.py
index a8660cc1c4..1e509e6d63 100644
--- a/saleor/graphql/checkout/tests/benchmark/test_checkout_mutations.py
+++ b/saleor/graphql/checkout/tests/benchmark/test_checkout_mutations.py
@@ -155,6 +155,7 @@ FRAGMENT_CHECKOUT = (
@pytest.mark.django_db
[email protected]("ignore::UserWarning")
@pytest.mark.count_queries(autouse=False)
def test_create_checkout(
api_client,
@@ -228,6 +229,7 @@ def test_create_checkout(
@pytest.mark.django_db
[email protected]("ignore::UserWarning")
@pytest.mark.count_queries(autouse=False)
def test_add_shipping_to_checkout(
api_client, checkout_with_shipping_address, shipping_method, count_queries,
@@ -261,6 +263,7 @@ def test_add_shipping_to_checkout(
@pytest.mark.django_db
[email protected]("ignore::UserWarning")
@pytest.mark.count_queries(autouse=False)
def test_add_billing_address_to_checkout(
api_client, graphql_address_data, checkout_with_shipping_method, count_queries
@@ -370,6 +373,7 @@ def test_update_checkout_lines(
@pytest.mark.django_db
[email protected]("ignore::UserWarning")
@pytest.mark.count_queries(autouse=False)
def test_checkout_shipping_address_update(
api_client, graphql_address_data, checkout_with_variant, count_queries
@@ -403,6 +407,7 @@ def test_checkout_shipping_address_update(
@pytest.mark.django_db
[email protected]("ignore::UserWarning")
@pytest.mark.count_queries(autouse=False)
def test_checkout_email_update(api_client, checkout_with_variant, count_queries):
query = (
@@ -432,6 +437,7 @@ def test_checkout_email_update(api_client, checkout_with_variant, count_queries)
@pytest.mark.django_db
[email protected]("ignore::UserWarning")
@pytest.mark.count_queries(autouse=False)
def test_checkout_voucher_code(
api_client, checkout_with_billing_address, voucher, count_queries
diff --git a/saleor/graphql/checkout/tests/benchmark/test_homepage.py b/saleor/graphql/checkout/tests/benchmark/test_homepage.py
index 9575750c11..f32a4dab60 100644
--- a/saleor/graphql/checkout/tests/benchmark/test_homepage.py
+++ b/saleor/graphql/checkout/tests/benchmark/test_homepage.py
@@ -4,6 +4,7 @@ from ....tests.utils import get_graphql_content
@pytest.mark.django_db
[email protected]("ignore::UserWarning")
@pytest.mark.count_queries(autouse=False)
def test_user_checkout_details(user_api_client, customer_checkout, count_queries):
query = """
diff --git a/saleor/graphql/payment/tests/test_payment.py b/saleor/graphql/payment/tests/test_payment.py
index 00d22b56ce..7f3881612b 100644
--- a/saleor/graphql/payment/tests/test_payment.py
+++ b/saleor/graphql/payment/tests/test_payment.py
@@ -714,6 +714,7 @@ def set_dummy_customer_id(customer_user, dummy_customer_id):
return customer_user
[email protected]("ignore::UserWarning")
def test_list_payment_sources(
mocker, dummy_customer_id, set_dummy_customer_id, user_api_client
):
diff --git a/saleor/graphql/shop/tests/test_shop.py b/saleor/graphql/shop/tests/test_shop.py
index 22302b739a..3e0b319699 100644
--- a/saleor/graphql/shop/tests/test_shop.py
+++ b/saleor/graphql/shop/tests/test_shop.py
@@ -682,6 +682,7 @@ def test_query_geolocalization(user_api_client):
assert data["country"] is None
[email protected]("ignore::UserWarning")
def test_query_available_payment_gateways(user_api_client):
query = """
query {