Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix typos in tests
Aleksander Spyra6e13eafaa8f7
diff --git a/tests/api/test_account.py b/tests/api/test_account.pyindex 11955de96a..01e4def5dc 100644--- a/tests/api/test_account.py+++ b/tests/api/test_account.py@@ -872,7 +872,7 @@ def test_logged_customer_update(user_api_client, graphql_address_data):assert user.default_shipping_address.first_name == new_first_name-def test_logged_customer_update_anonymus_user(api_client):+def test_logged_customer_update_anonymous_user(api_client):response = api_client.post_graphql(UPDATE_LOGGED_CUSTOMER_QUERY, {})assert_no_permission(response)@@ -928,7 +928,7 @@ def test_customer_delete_errors(customer_user, admin_user, staff_user):msg = "Cannot delete a staff account."assert e.value.error_dict["id"][0].message == msg- # shuold not raise any errors+ # should not raise any errorsCustomerDelete.clean_instance(info, customer_user)@@ -1083,7 +1083,7 @@ def test_staff_delete_errors(staff_user, customer_user, admin_user):msg = "Cannot delete a non-staff user."assert e.value.error_dict["id"][0].message == msg- # shuold not raise any errors+ # should not raise any errorsinfo = Mock(context=Mock(user=admin_user))StaffDelete.clean_instance(info, staff_user)@@ -1101,7 +1101,7 @@ def test_staff_update_errors(staff_user, customer_user, admin_user):msg = "Cannot deactivate superuser's account."assert e.value.error_dict["is_active"][0].message == msg- # shuold not raise any errors+ # should not raise any errorsStaffUpdate.clean_is_active(False, customer_user, staff_user)diff --git a/tests/api/test_gift_card.py b/tests/api/test_gift_card.pyindex 47515c1baf..e5852be015 100644--- a/tests/api/test_gift_card.py+++ b/tests/api/test_gift_card.py@@ -323,7 +323,7 @@ def test_create_gift_card_with_incorrect_user_email("startDate": start_date.isoformat(),"endDate": end_date.isoformat(),"balance": initial_balance,- "userEmail": "[email protected]",+ "userEmail": "[email protected]",}response = staff_api_client.post_graphql(CREATE_GIFT_CARD_MUTATION, variables, permissions=[permission_manage_gift_card]diff --git a/tests/api/utils.py b/tests/api/utils.pyindex 5594a890ae..5a75608d50 100644--- a/tests/api/utils.py+++ b/tests/api/utils.py@@ -10,7 +10,7 @@ def _get_graphql_content_from_response(response):def get_graphql_content(response):- """Get's GraphQL content from the response, and optionally checks if it+ """Gets GraphQL content from the response, and optionally checks if itcontains any operating-related errors, eg. schema errors or lack ofpermissions."""