Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Remove unnecessary tests
Maciek Jabłoński63c3edc937ae
diff --git a/tests/test_checkout_integration.py b/tests/test_checkout_integration.pyindex d81db61a0b..e1b0d0f4bb 100644--- a/tests/test_checkout_integration.py+++ b/tests/test_checkout_integration.py@@ -3,18 +3,10 @@ from django.core.urlresolvers import reversefrom tests.utils import get_redirect_location-def test_checkout_flow(cart_with_item, product_in_stock, client, shipping_method):+def test_checkout_flow(cart_with_item, client, shipping_method): # pylint: disable=W0613"""Basic test case that confirms if core checkout flow works"""- # Prepare some data- variant = product_in_stock.variants.get()-- # Go to cart page- cart_page = client.get(reverse('cart:index'))- cart_lines = cart_page.context['cart_lines']- assert len(cart_lines) == cart_with_item.lines.count()- assert cart_lines[0]['variant'] == variant# Enter checkoutcheckout_index = client.get(reverse('checkout:index'), follow=True)@@ -71,21 +63,15 @@ def test_checkout_flow(cart_with_item, product_in_stock, client, shipping_methoddef test_checkout_flow_authenticated_user(authorized_client, billing_address, cart_with_item,- normal_user, product_in_stock, shipping_method):+ normal_user, shipping_method):"""Checkout with authenticated user and previously saved address"""- variant = product_in_stock.variants.get()# Prepare some datanormal_user.addresses.add(billing_address)cart_with_item.user = normal_usercart_with_item.save()- # Go to cart page- cart_page = authorized_client.get(reverse('cart:index'))- cart_lines = cart_page.context['cart_lines']- assert len(cart_lines) == cart_with_item.lines.count()- assert cart_lines[0]['variant'] == variant# Enter checkout# Checkout index redirects directly to shipping address stepshipping_address = authorized_client.get(reverse('checkout:index'), follow=True)