Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Revert the use of the fixture `variant` instead of `product`
NyanKiyoshi2c09cb63ecc2
diff --git a/tests/conftest.py b/tests/conftest.pyindex 8b3c909f01..d7629debbc 100644--- a/tests/conftest.py+++ b/tests/conftest.py@@ -155,7 +155,8 @@ def request_cart(cart, monkeypatch):@pytest.fixture-def request_cart_with_item(variant, request_cart):+def request_cart_with_item(product, request_cart):+ variant = product.variants.get()add_variant_to_cart(request_cart, variant)return request_cartdiff --git a/tests/test_checkout.py b/tests/test_checkout.pyindex 6a9b816230..cddd3dd38a 100644--- a/tests/test_checkout.py+++ b/tests/test_checkout.py@@ -393,9 +393,10 @@ def test_view_checkout_place_order_with_expired_voucher_code(def test_view_checkout_place_order_with_item_out_of_stock(client, request_cart_with_item,- shipping_method, address, voucher, variant):+ shipping_method, address, voucher, product):cart = request_cart_with_item+ variant = product.variants.get()# add shipping information to the cartcart.shipping_address = address