示例#1
0
def test_clear_shipping_method(checkout, shipping_method):
    checkout.shipping_method = shipping_method
    checkout.save()
    clear_shipping_method(checkout)
    checkout.refresh_from_db()
    assert not checkout.shipping_method
示例#2
0
def test_clear_shipping_method(cart, shipping_method):
    cart.shipping_method = shipping_method
    cart.save()
    clear_shipping_method(cart)
    cart.refresh_from_db()
    assert not cart.shipping_method
示例#3
0
def test_clear_shipping_method(checkout, shipping_method):
    checkout.shipping_method = shipping_method
    checkout.save()
    clear_shipping_method(checkout)
    checkout.refresh_from_db()
    assert not checkout.shipping_method
示例#4
0
def test_clear_shipping_method(cart, shipping_method):
    cart.shipping_method = shipping_method
    cart.save()
    clear_shipping_method(cart)
    cart.refresh_from_db()
    assert not cart.shipping_method