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

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