Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Improve test for discounts in order
Mira Szewczyk9e76098b62a9
diff --git a/tests/test_order.py b/tests/test_order.pyindex 1ccd0937e7..736a072202 100644--- a/tests/test_order.py+++ b/tests/test_order.py@@ -72,6 +72,6 @@ def test_dashboard_change_quantity_form(request_cart_with_item, order):def test_order_discount(sale, order, request_cart_with_item):cart = request_cart_with_itemgroup = models.DeliveryGroup.objects.create(order=order)- group.add_items_from_partition(cart.lines.all())+ group.add_items_from_partition(cart.lines.all(), discounts=cart.discounts)item = group.items.first()- assert item.get_total() == Price(currency="USD", net=5)+ assert item.get_price_per_item() == Price(currency="USD", net=5)