Skip to content

Saleor Core: the high performance, composable, headless commerce API.

fix pep

michal413ccb1f5d2a
diff --git a/saleor/dashboard/order/views.py b/saleor/dashboard/order/views.py
index 636fed3968..ab3fd092c1 100644
--- a/saleor/dashboard/order/views.py
+++ b/saleor/dashboard/order/views.py
@@ -388,7 +388,7 @@ def order_invoice(request, order_pk, group_pk):
rendered_template = get_template(
'dashboard/order/pdf/invoice.html').render(ctx)
stylesheet = [CSS(
- url=request.build_absolute_uri(static('/assets/document.css')))]
+ url=request.build_absolute_uri(static('/assets/document.css')))]
pdf_file = (HTML(string=rendered_template)
.write_pdf(stylesheets=stylesheet))
response = HttpResponse(pdf_file, content_type='application/pdf')
@@ -410,7 +410,7 @@ def order_packing_slip(request, order_pk, group_pk):
rendered_template = get_template(
'dashboard/order/pdf/packing_slip.html').render(ctx)
stylesheet = [CSS(
- url=request.build_absolute_uri(static('/assets/document.css')))]
+ url=request.build_absolute_uri(static('/assets/document.css')))]
pdf_file = (HTML(string=rendered_template)
.write_pdf(stylesheets=stylesheet))
response = HttpResponse(pdf_file, content_type='application/pdf')
diff --git a/tests/dashboard/test_order.py b/tests/dashboard/test_order.py
index d99aeb4e15..8127dfacf6 100644
--- a/tests/dashboard/test_order.py
+++ b/tests/dashboard/test_order.py
@@ -281,7 +281,7 @@ def test_view_split_order_line_with_invalid_data(admin_client, order_with_items_
@pytest.mark.django_db
@mock.patch('saleor.dashboard.order.views.CSS')
def test_view_order_invoice(
- css_patch, admin_client, order_with_items_and_stock, billing_address):
+ css_patch, admin_client, order_with_items_and_stock, billing_address):
"""
user goes to order details page
user clicks on Invoice button
@@ -306,7 +306,7 @@ def test_view_order_invoice(
@pytest.mark.django_db
@mock.patch('saleor.dashboard.order.views.CSS')
def test_view_order_packing_slips(
- css_patch, admin_client, order_with_items_and_stock, billing_address):
+ css_patch, admin_client, order_with_items_and_stock, billing_address):
"""
user goes to order details page
user clicks on Packing Slips button