Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Make sure email obfuscation works
Tomasz Szymanskia996a5f16479
diff --git a/saleor/graphql/order/tests/test_order.py b/saleor/graphql/order/tests/test_order.pyindex 58e048e1a2..8cb9a00ed1 100644--- a/saleor/graphql/order/tests/test_order.py+++ b/saleor/graphql/order/tests/test_order.py@@ -14,6 +14,7 @@ from measurement.measures import Weightfrom prices import Money, TaxedMoneyfrom ....account.models import CustomerEvent+from ....core.anonymize import obfuscate_emailfrom ....core.notify_events import NotifyEventTypefrom ....core.prices import quantize_pricefrom ....core.taxes import TaxError, zero_taxed_money@@ -4025,6 +4026,7 @@ def test_order_by_token_query_by_anonymous_user(api_client, order):assert data["billingAddress"]["phone"] == str(order.billing_address.phone)[:3] + "." * (len(str(order.billing_address.phone)) - 3)+ assert data["userEmail"] == obfuscate_email(order.user_email)def test_order_by_token_query_by_order_owner(user_api_client, order):