Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add url assertion
Maciek Jabłoński6cba470382ac
diff --git a/tests/test_checkout_integration.py b/tests/test_checkout_integration.pyindex 7590355971..747a3c0e7a 100644--- a/tests/test_checkout_integration.py+++ b/tests/test_checkout_integration.py@@ -284,6 +284,7 @@ def test_voucher_invalid(client, request_cart_with_item, shipping_method, vouchevoucher.used = 3voucher.save()address_data = {'address': 'shipping_address'}+ assert url == reverse('checkout:summary')summary_response = client.post(url, data=address_data, follow=True)assert summary_response.context['checkout'].voucher_code is None