Fix redirect assertions

This commit is contained in:
Raphael Michel
2018-02-01 18:13:59 +01:00
parent 1a1a02d080
commit f68a6d1119
4 changed files with 36 additions and 36 deletions

View File

@@ -71,7 +71,7 @@ class CheckoutTestCase(TestCase):
def test_empty_cart(self):
response = self.client.get('/%s/%s/checkout/start' % (self.orga.slug, self.event.slug), follow=True)
self.assertRedirects(response, '/%s/%s/' % (self.orga.slug, self.event.slug),
self.assertRedirects(response, '/%s/%s/?require_cookie=true' % (self.orga.slug, self.event.slug),
target_status_code=200)
def test_timezone(self):
@@ -553,7 +553,7 @@ class CheckoutTestCase(TestCase):
def test_premature_confirm(self):
response = self.client.get('/%s/%s/checkout/confirm/' % (self.orga.slug, self.event.slug), follow=True)
self.assertRedirects(response, '/%s/%s/' % (self.orga.slug, self.event.slug),
self.assertRedirects(response, '/%s/%s/?require_cookie=true' % (self.orga.slug, self.event.slug),
target_status_code=200)
self.event.settings.set('payment_stripe__enabled', True)