Skip to content

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

Drop useless filterwarnings for UserWarning

IKarbowiak67c270b80afa
diff --git a/saleor/graphql/checkout/tests/benchmark/test_checkout_mutations.py b/saleor/graphql/checkout/tests/benchmark/test_checkout_mutations.py
index 7f4b725968..6789cac0a2 100644
--- a/saleor/graphql/checkout/tests/benchmark/test_checkout_mutations.py
+++ b/saleor/graphql/checkout/tests/benchmark/test_checkout_mutations.py
@@ -155,7 +155,6 @@ FRAGMENT_CHECKOUT = (
@pytest.mark.django_db
[email protected]("ignore::UserWarning")
@pytest.mark.count_queries(autouse=False)
def test_create_checkout(
api_client,
@@ -229,7 +228,6 @@ 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,
@@ -263,7 +261,6 @@ 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
@@ -373,7 +370,6 @@ 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
@@ -407,7 +403,6 @@ 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 = (
@@ -437,7 +432,6 @@ 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 f32a4dab60..9575750c11 100644
--- a/saleor/graphql/checkout/tests/benchmark/test_homepage.py
+++ b/saleor/graphql/checkout/tests/benchmark/test_homepage.py
@@ -4,7 +4,6 @@ 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/checkout/tests/test_checkout.py b/saleor/graphql/checkout/tests/test_checkout.py
index 001d076060..81bcbbbd51 100644
--- a/saleor/graphql/checkout/tests/test_checkout.py
+++ b/saleor/graphql/checkout/tests/test_checkout.py
@@ -586,7 +586,6 @@ def test_checkout_available_payment_gateways(
assert data["availablePaymentGateways"] == [expected_dummy_gateway]
[email protected]("ignore::UserWarning")
def test_checkout_available_payment_gateways_currency_specified_USD(
api_client, checkout_with_item, expected_dummy_gateway, sample_gateway
):
@@ -606,7 +605,6 @@ def test_checkout_available_payment_gateways_currency_specified_USD(
}
[email protected]("ignore::UserWarning")
def test_checkout_available_payment_gateways_currency_specified_PLN(
api_client, checkout_with_item, expected_dummy_gateway, sample_gateway
):
diff --git a/saleor/graphql/payment/tests/test_payment.py b/saleor/graphql/payment/tests/test_payment.py
index 8904f203c1..71eea69712 100644
--- a/saleor/graphql/payment/tests/test_payment.py
+++ b/saleor/graphql/payment/tests/test_payment.py
@@ -740,7 +740,6 @@ 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 f05fc38d1f..8499ba03e0 100644
--- a/saleor/graphql/shop/tests/test_shop.py
+++ b/saleor/graphql/shop/tests/test_shop.py
@@ -694,7 +694,6 @@ AVAILABLE_PAYMENT_GATEWAYS_QUERY = """
"""
[email protected]("ignore::UserWarning")
def test_query_available_payment_gateways(user_api_client, sample_gateway):
query = AVAILABLE_PAYMENT_GATEWAYS_QUERY
response = user_api_client.post_graphql(query)
@@ -707,7 +706,6 @@ def test_query_available_payment_gateways(user_api_client, sample_gateway):
assert {gateway["name"] for gateway in data} == {"Dummy", "SampleDummy"}
[email protected]("ignore::UserWarning")
def test_query_available_payment_gateways_specified_currency_USD(
user_api_client, sample_gateway
):
@@ -722,7 +720,6 @@ def test_query_available_payment_gateways_specified_currency_USD(
assert {gateway["name"] for gateway in data} == {"Dummy", "SampleDummy"}
[email protected]("ignore::UserWarning")
def test_query_available_payment_gateways_specified_currency_PLN(
user_api_client, sample_gateway
):