def test_summary_without_shipping_method(request_cart_with_item, client, monkeypatch):
 monkeypatch.setattr('saleor.checkout.core.Checkout.email', True)
 response = client.get(reverse('checkout:summary'))
 assert (response.status_code == 302)
 assert (get_redirect_location(response) == reverse('checkout:shipping-method'))

def test_summary_without_shipping_method ( request_cart_with_item , client , monkeypatch ) : monkeypatch . setattr ( 'saleor.checkout.core.Checkout.email' , True ) response = client . get ( reverse ( 'checkout:summary' ) ) assert ( response . status_code == 302 ) assert ( get_redirect_location ( response ) == reverse ( 'checkout:shipping-method' ) )
user tries to get summary step without saved shipping method - if is redirected to shipping method step .