Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Get rid of warnings from tests
IKarbowiak1e7da70e8255
diff --git a/saleor/graphql/account/tests/test_account.py b/saleor/graphql/account/tests/test_account.pyindex 6a4710106d..941a2dbaa1 100644--- a/saleor/graphql/account/tests/test_account.py+++ b/saleor/graphql/account/tests/test_account.py@@ -1060,7 +1060,7 @@ def test_customer_register_no_redirect_url(mocked_notify, api_client):CUSTOMER_CREATE_MUTATION = """mutation CreateCustomer(- $email: String, $firstName: String, $lastName: String,+ $email: String, $firstName: String, $lastName: String, $channel: String$note: String, $billing: AddressInput, $shipping: AddressInput,$redirect_url: String, $languageCode: LanguageCodeEnum) {customerCreate(input: {@@ -1071,7 +1071,8 @@ CUSTOMER_CREATE_MUTATION = """defaultShippingAddress: $shipping,defaultBillingAddress: $billing,redirectUrl: $redirect_url,- languageCode: $languageCode+ languageCode: $languageCode,+ channel: $channel,}) {errors {field@@ -3712,7 +3713,11 @@ def test_account_reset_password_subdomain():settings.ALLOWED_CLIENT_HOSTS = [".example.com"]redirect_url = "https://sub.example.com"- variables = {"email": customer_user.email, "redirectUrl": redirect_url}+ variables = {+ "email": customer_user.email,+ "redirectUrl": redirect_url,+ "channel": channel_PLN.slug,+ }response = user_api_client.post_graphql(REQUEST_PASSWORD_RESET_MUTATION, variables)content = get_graphql_content(response)data = content["data"]["requestPasswordReset"]@@ -4717,8 +4722,8 @@ def test_request_email_change_with_invalid_password(user_api_client, customer_usEMAIL_UPDATE_QUERY = """-mutation emailUpdate($token: String!) {- confirmEmailChange(token: $token){+mutation emailUpdate($token: String!, $channel: String) {+ confirmEmailChange(token: $token, channel: $channel){user {}@@ -4741,7 +4746,7 @@ def test_email_update(user_api_client, customer_user, channel_PLN):}token = create_token(payload, timedelta(hours=1))- variables = {"token": token}+ variables = {"token": token, "channel": channel_PLN.slug}response = user_api_client.post_graphql(EMAIL_UPDATE_QUERY, variables)content = get_graphql_content(response)diff --git a/saleor/graphql/product/tests/test_product.py b/saleor/graphql/product/tests/test_product.pyindex 72324666a8..761eb12379 100644--- a/saleor/graphql/product/tests/test_product.py+++ b/saleor/graphql/product/tests/test_product.py@@ -343,11 +343,11 @@ def test_product_query_by_id_available_as_app(def test_product_query_by_id_as_user(- user_api_client, permission_manage_products, product+ user_api_client, permission_manage_products, product, channel_USD):query = """- query ($id: ID){- product(id: $id) {+ query ($id: ID, $channel: String){+ product(id: $id, channel: $channel) {idvariants {id@@ -357,6 +357,7 @@ def test_product_query_by_id_as_user("""variables = {"id": graphene.Node.to_global_id("Product", product.pk),+ "channel": channel_USD.slug,}response = user_api_client.post_graphql(