Skip to content

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

Improve code style

Anna Siwik40d48823d75a
diff --git a/docs/orders.rst b/docs/orders.rst
index 45d256c243..9cccc53197 100644
--- a/docs/orders.rst
+++ b/docs/orders.rst
@@ -28,7 +28,7 @@ Delivery Group statuses flow
.. image:: img/delivery_group_statuses.png
-Regular flow of statuses is from ``NEW`` to ``SHIPPED``. For managing states saleor uses `django_fsm <https://github.com/kmmbvnr/django-fsm>`_ package. Actions performed within changing status are placed in Delivery Group model and are as follows:
+Regular flow of statuses is from ``NEW`` to ``SHIPPED``. For managing states Saleor uses `django-fsm <https://github.com/kmmbvnr/django-fsm>`_ package. Actions performed within changing status are placed in DeliveryGroup model and are as follows:
- ``process(cart_lines, discounts=None)``
Adds specified cart lines to a group with optionally charged discounts and allocates quantity in corresponding stocks. Performed during creating order in checkout process.
diff --git a/tests/conftest.py b/tests/conftest.py
index d17713f521..6514a7974d 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -500,8 +500,7 @@ def delivery_group(order, product_class):
unit_price_net=Decimal('30.00'),
unit_price_gross=Decimal('30.00'),
stock=stock,
- stock_location=stock.location.name
- )
+ stock_location=stock.location.name)
recalculate_order(order)
order.refresh_from_db()
return group