Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add test for total property
Artur Smęt08447fa344e2
diff --git a/saleor/order/test_order.py b/saleor/order/test_order.pyindex e69de29bb2..f8dae49147 100644--- a/saleor/order/test_order.py+++ b/saleor/order/test_order.py@@ -0,0 +1,8 @@+from .models import Order+++def test_total_property():+ order = Order(total_net=20, total_tax=5)+ assert order.total.gross == 25+ assert order.total.tax == 5+ assert order.total.net == 20