Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Added a test ensuring order lines can be fulfilled with deleted variants
NyanKiyoshi4e3261317b8f
diff --git a/tests/dashboard/test_order.py b/tests/dashboard/test_order.pyindex c5f8c375d9..00682bdf9b 100644--- a/tests/dashboard/test_order.py+++ b/tests/dashboard/test_order.py@@ -629,6 +629,15 @@ def test_fulfill_order_line(order_with_lines):assert line.quantity_fulfilled == quantity_fulfilled_before + line.quantity+def test_fulfill_order_line_with_variant_deleted(order_with_lines):+ line = order_with_lines.lines.first()+ line.variant.delete()++ line.refresh_from_db()++ fulfill_order_line(line, line.quantity)++def test_view_change_fulfillment_tracking(admin_client, fulfilled_order):fulfillment = fulfilled_order.fulfillments.first()url = reverse(