Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add test
fowczarekf4822da305c9
diff --git a/tests/api/test_account.py b/tests/api/test_account.pyindex 6c6e52d4c4..99e23a823f 100644--- a/tests/api/test_account.py+++ b/tests/api/test_account.py@@ -264,6 +264,9 @@ ME_QUERY = """me {id+ checkout {+ token+ }}}"""@@ -305,6 +308,17 @@ def test_me_query_customer_can_not_see_note(assert data['note'] == staff_api_client.user.note+def test_me_query_checkout(user_api_client, cart):+ user = user_api_client.user+ cart.user = user+ cart.save()++ response = user_api_client.post_graphql(ME_QUERY)+ content = get_graphql_content(response)+ data = content['data']['me']+ assert data['checkout']['token'] == str(cart.token)++def test_customer_register(user_api_client):query = """mutation RegisterCustomer($password: String!, $email: String!) {