Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
remove unnecessary docstring/cleanup account testcase
Damian Wysocki5cddd33ca8b2
diff --git a/saleor/order/utils.py b/saleor/order/utils.pyindex 824f2d1511..6c70837fc4 100644--- a/saleor/order/utils.py+++ b/saleor/order/utils.py@@ -337,5 +337,4 @@ def get_voucher_discount_for_order(order: Order) -> Money:def match_orders_with_new_user(user: User) -> None:- """Match Orders with a new user."""Order.objects.filter(user_email=user.email, user=None).update(user=user)diff --git a/tests/api/test_account.py b/tests/api/test_account.pyindex ef583db807..577d981308 100644--- a/tests/api/test_account.py+++ b/tests/api/test_account.py@@ -652,7 +652,7 @@ def test_customer_register_disabled_email_confirmation(new_user = User.objects.get(email=email)assert errors == []- assert send_account_confirmation_email_mock.delay.call_count == 0+ send_account_confirmation_email_mock.delay.assert_not_called()match_orders_with_new_user_mock.assert_called_once_with(new_user)