Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix "shippment" typo and add context to translations
Patryk Zawadzki192e7ec0d9a1
diff --git a/templates/dashboard/shipping/detail.html b/templates/dashboard/shipping/detail.htmlindex 27a335a507..47571d642a 100644--- a/templates/dashboard/shipping/detail.html+++ b/templates/dashboard/shipping/detail.html@@ -68,7 +68,7 @@<div class="card"><div class="card-content"><span class="card-title">- {% trans "Price per country" %}+ {% trans "Price per country" context "Title of the per-country shipping price list" %}</span></div><div class="data-table-container">@@ -76,9 +76,9 @@<thead><tr><th>- {% trans "Country" %}+ {% trans "Country" context "Header of the per-country shipping price list" %}</th>- <th>{% trans "Price" %}</th>+ <th>{% trans "Price" context "Header of the per-country shipping price list" %}</th></tr></thead><tbody>@@ -89,7 +89,7 @@</tr>{% empty %}<tr>- <td colspan="2">{% trans "No shippment prices" %}</td>+ <td colspan="2">{% trans "No shipping prices" context "Empty list of per-country shipping prices" %}</td></tr>{% endfor %}</tbody>diff --git a/tests/test_cart.py b/tests/test_cart.pyindex 1046952b0f..5ca5a7d038 100644--- a/tests/test_cart.py+++ b/tests/test_cart.py@@ -736,18 +736,18 @@ def test_get_or_create_db_cart(customer_user, db, rf):def test_get_cart_data(request_cart_with_item, shipping_method):- shippment_option = get_shipment_options('PL')+ shipment_option = get_shipment_options('PL')cart_data = utils.get_cart_data(- request_cart_with_item, shippment_option, 'USD', None)+ request_cart_with_item, shipment_option, 'USD', None)assert cart_data['cart_total'] == Price(net=10, currency='USD')assert cart_data['total_with_shipping'].min_price == Price(net=20, currency='USD')def test_get_cart_data_no_shipping(request_cart_with_item):- shippment_option = get_shipment_options('PL')+ shipment_option = get_shipment_options('PL')cart_data = utils.get_cart_data(- request_cart_with_item, shippment_option, 'USD', None)+ request_cart_with_item, shipment_option, 'USD', None)cart_total = cart_data['cart_total']assert cart_total == Price(net=10, currency='USD')assert cart_data['total_with_shipping'].min_price == cart_total