Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Add url assertion

Maciek Jabłoński6cba470382ac
diff --git a/tests/test_checkout_integration.py b/tests/test_checkout_integration.py
index 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, vouche
voucher.used = 3
voucher.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