Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Reformat code pep8 wise
Jakub Draganek9d461f44ee52
diff --git a/saleor/order/emails.py b/saleor/order/emails.pyindex 293459621f..fa2c730baf 100644--- a/saleor/order/emails.py+++ b/saleor/order/emails.py@@ -3,17 +3,17 @@ from ..site.utils import get_site_namefrom django.conf import settingsfrom celery import shared_task-CONFIRM_ORDER_TEMPLATE = 'order/confirm_order'CONFIRM_PAYMENT_TEMPLATE = 'order/payment/confirm_payment'def _send_confirmation(address, url, template):- send_templated_mail(from_email=settings.ORDER_FROM_EMAIL,- recipient_list=[address],- context={'site_name': get_site_name(),- 'url': url},- template_name=template)+ send_templated_mail(+ from_email=settings.ORDER_FROM_EMAIL,+ recipient_list=[address],+ context={'site_name': get_site_name(),+ 'url': url},+ template_name=template)@shared_taskdiff --git a/tests/test_emails.py b/tests/test_emails.pyindex 0750e5c3db..070d066dcc 100644--- a/tests/test_emails.py+++ b/tests/test_emails.py@@ -4,7 +4,6 @@ from django.conf import settingsimport saleor.order.emails as emailsimport mock-EMAIL = "[email protected]"SITE_NAME = 'WOOBALOOBA'URL = 'wooba/looba'@@ -18,7 +17,9 @@ def test_send_confirmation_using_templated_email(mocked_templated_email,emails.send_order_confirmation(EMAIL, URL)context = {'site_name': SITE_NAME, 'url': URL}mocked_templated_email.assert_called_once_with(- recipient_list=[EMAIL], context=context, from_email=EMAIL_FROM,+ recipient_list=[EMAIL],+ context=context,+ from_email=EMAIL_FROM,template_name=emails.CONFIRM_ORDER_TEMPLATE)@@ -29,5 +30,7 @@ def test_send_order_payment_confirmation(mocked_templated_email,emails.send_payment_confirmation(EMAIL, URL)context = {'site_name': SITE_NAME, 'url': URL}mocked_templated_email.assert_called_once_with(- recipient_list=[EMAIL], context=context, from_email=EMAIL_FROM,+ recipient_list=[EMAIL],+ context=context,+ from_email=EMAIL_FROM,template_name=emails.CONFIRM_PAYMENT_TEMPLATE)