def test_remove_voucher_from_checkout(checkout_with_voucher, voucher_translation_fr): checkout = checkout_with_voucher remove_voucher_from_checkout(checkout) assert not checkout.voucher_code assert not checkout.discount_name assert not checkout.translated_discount_name assert checkout.discount == zero_money()
def test_remove_voucher_from_checkout(checkout_with_voucher, voucher_translation_fr): checkout = checkout_with_voucher remove_voucher_from_checkout(checkout) assert not checkout.voucher_code assert not checkout.discount_name assert not checkout.translated_discount_name assert checkout.discount_amount == ZERO_MONEY